@Test
public void shouldGetTypesCorrectly() throws Exception {

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