@Test
public void shouldDeserializeWithoutGenericType() {
InputStream stream = new ByteArrayInputStream(
"{'param': 'test'}".getBytes());
ResourceClass resourceClass = new DefaultResourceClass(ExtGenericController.class);
Method method = new Mirror().on(GenericController.class).reflect().method("methodWithoutGenericType").withArgs(String.class);
ResourceMethod resource = new DefaultResourceMethod(resourceClass, method);
when(provider.parameterNamesFor(resource.getMethod())).thenReturn(new String[] { "param" });
Object[] deserialized = deserializer.deserialize(stream, resource);