@Test
public void testTransformerRegistration2() throws Exception
{
Method m = getClass().getDeclaredMethod("dummy2", InputStream.class);
AnnotatedTransformerProxy trans = new AnnotatedTransformerProxy(5, getClass(), m, new Class[]{}, null, null);
DataType dt = DataTypeFactory.create(ArrayList.class, String.class, null);
DataType<?> returnDataType = trans.getReturnDataType();
assertTrue("should be a CollectionDataType", returnDataType instanceof CollectionDataType);
assertEquals(String.class, ((CollectionDataType<?>)returnDataType).getItemType());
assertEquals(dt, returnDataType);
}