---
title: "Discussion on \"PowerMock: Understanding @PrepareForTest\" | Hashnode"
description: "Discussion on \"PowerMock: Understanding @PrepareForTest\". PrepareForTest is very powerful tool that unlocks class manipulation capabilities by modifying class to byte code level."
url: "https://hashnode.com/posts/powermock-understanding-preparefortest/634e956f47f71dd282e1385e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PowerMock: Understanding @PrepareForTest](https://blog.tejpratapsingh.com/powermock-understanding-preparefortest?utm_source=hashnode&utm_medium=feed)

PrepareForTest is very powerful tool that unlocks class manipulation capabilities by modifying class to byte code level.

Oct 18, 2022 · 3 min read · blog.tejpratapsingh.com  
Read the article

-   [#powermock](https://hashnode.com/tag/powermock)
-   [#android](https://hashnode.com/tag/android)
-   [#java](https://hashnode.com/tag/java)
-   [#testing](https://hashnode.com/tag/testing)
-   [#mocking](https://hashnode.com/tag/mocking)

## Written by

[Tej Pratap Singh](https://hashnode.com/@tejpratap)

@tejpratap · Bangalore, IN

  
[View profile](https://hashnode.com/@tejpratap)

Developer

Code, Movies and code for movies

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
