Mock static methods from multiple class using PowerMock
Just do @PrepareForTest({Class1.class,Class2.class})
for multiple classes.
@Test
@PrepareForTest({Class1.class, Class2.class})
public final void handleScript() throws Exception {
PowerMockito.mockStatic(Class1.class);
PowerMockito.mockStatic(Class2.class);
etc...
If you are using kotlin, the syntax is this
@PrepareForTest(ClassA::class, ClassB::class)