@Test
public void methodUnderTestShouldWorkWithClassLevelMock() throws Exception {
whenNew(SomeDependency.class).withNoArguments().thenReturn(somethingUsedByMethodUnderTest);
NewDemo objectUnderTest = new NewDemo();
objectUnderTest.methodUnderTest();
}