@Test
public void shouldGetTypesCorrectlyOnInheritance() throws Exception {

	final Method method = new Mirror().on(AController.class).reflect().method("otherMethod").withArgs(BeanExtended.class);
	
	when(provider.parameterNamesFor(method)).thenReturn(new String[] {"extended"});
	
	DefaultTypeFinder finder = new DefaultTypeFinder(provider);
	Map<String, Class<?>> types = finder.getParameterTypes(method, new String[] {"extended.id"});
	assertEquals(Integer.class, types.get("extended.id"));
}