* class under test at the same time as skipping constructor execution.
*/
@Test
public void testPartialMockingAndSuppressParentConstructor() throws Exception {
suppress(constructor(SuppressConstructorSubclassDemo.class));
final SuppressConstructorDemo tested = createPartialMock(SuppressConstructorDemo.class, "returnAMessage");
final String expected = "Hello world!";
expectPrivate(tested, "returnAMessage").andReturn(expected);
replay(tested);
final String actual = tested.getMyOwnMessage();
verify(tested);
assertEquals(expected, actual);
assertNull("Message should have been null since we're skipping the execution of the constructor code.", tested.getMessage());
}