@Test
public void shouldBeAbleToDeserializeADogNamedDifferently() throws Exception {

	InputStream stream = new ByteArrayInputStream("<pet><name>Brutus</name><age>7</age></pet>".getBytes());
	when(provider.parameterNamesFor(bark.getMethod())).thenReturn(new String[] {"pet"});
	Object[] deserialized = deserializer.deserialize(stream, bark);
	assertThat(deserialized.length, is(1));
	assertThat(deserialized[0], is(instanceOf(Dog.class)));
	Dog dog = (Dog) deserialized[0];
	assertThat(dog.name, is("Brutus"));
	assertThat(dog.age, is(7));
}