I am writing unit tests for a class, which has a static final variable. However, since the state of the static final var is modified in each test, I need some way to reinitialize it.
How would this be possible? Would i need to use some sort of a custom classloader?
The variable is initialized as -
static final CountdownLatch latch = new CountdownLatch(1);