// Test explicit method names
// ===============================================================================================
@Test public void testFindBestMethodWithSignature_StringAndMethodName() throws Exception {
ReflectionHelper helper = new ReflectionHelper(FakeInterface.class);
Class[] signatureSought = new Class[] {String.class};
Method theMethod = helper.findBestMethodWithSignature("methodString", signatureSought ); //$NON-NLS-1$
assertNotNull("Failed to find method for args: " + signatureSought, theMethod); //$NON-NLS-1$
// make sure we got the method we expected
Class[] signatureFound = theMethod.getParameterTypes();
Class[] signatureExpected = signatureSought;
assertEquals("Wrong class", theMethod.getDeclaringClass().getName(), FakeInterface.class.getName()); //$NON-NLS-1$
helpAssertSameMethodSignature("Found wrong method signature", signatureExpected, signatureFound); //$NON-NLS-1$
}