@Test
public void testExpectPrivateMethodWithoutSpecifyingMethodName_firstArgumentIsOfStringType()
throws Exception {
final String expected = "Hello world";
PrivateMethodDemo tested = createPartialMock(PrivateMethodDemo.class,
"sayIt");
expectPrivate(tested, (String) null, "firstName", " ", "lastName")
.andReturn(expected);
replay(tested);
assertEquals(expected, tested.enhancedSay("firstName", "lastName"));
verify(tested);
}