@Test
public void shouldBeAbleToDeserializeACatWhenAliasConfiguredByAnnotations() {


	InputStream stream = new ByteArrayInputStream("{\"catAnnotated\":{\"nameAnnotated\": \"Zulu\", \"ageAnnotated\": 1}}".getBytes());
	
	when(provider.parameterNamesFor(annotated.getMethod())).thenReturn(new String[] {"cat"});
	
	Object[] deserialized = deserializer.deserialize(stream, annotated);
	
	assertThat(deserialized.length, is(1));
	assertThat(deserialized[0], is(instanceOf(CatWithAnnotations.class)));
	
	CatWithAnnotations cat = (CatWithAnnotations) deserialized[0];
	assertThat(cat.name, is("Zulu"));
	assertThat(cat.age, is(1));
}