@Test
public void willCreateATargerForEachFormalParameterDeclaredByTheMethod() throws Exception {

	final ResourceMethod buyAHouse = buyA;
	requestParameterIs(buyAHouse, "house", "");
	final InstantiatorWithErrors mockInstantiator = mock(InstantiatorWithErrors.class);
	IogiParametersProvider iogiProvider = new IogiParametersProvider(nameProvider, request, mockInstantiator);
	final Target<House> expectedTarget = Target.create(House.class, "house");
	iogiProvider.getParametersFor(buyAHouse, errors, null);
	verify(mockInstantiator).instantiate(eq(expectedTarget), any(Parameters.class), eq(errors));
}