// Test overloaded methods
// ===============================================================================================
@Test public void testFindBestMethodWithSignature_String() throws Exception {
ReflectionHelper helper = new ReflectionHelper(FakeInterface.class);
Class[] signatureSought = new Class[] {String.class};
Method theMethod = helper.findBestMethodWithSignature("method", 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$
}