final String expectedFailMessage = "testing";
whenNew(MyClass.class).withNoArguments().thenThrow(new RuntimeException(expectedFailMessage));
try {
tested.throwExceptionWhenInvoction();
fail("Should throw RuntimeException!");
} catch (RuntimeException e) {
assertEquals(expectedFailMessage, e.getMessage());
}