public void testTransformerConfig()
{
// first of all test generic transformer configuration
super.testTransformerConfig();
Transformer t = muleContext.getRegistry().lookupTransformer("TestCompressionTransformer");
assertNotNull(t);
assertTrue(t instanceof TestCompressionTransformer);
// This will only work with the MuleXml Builder other implementations
// will have to set this proerty manually or mimic Mules behaviour
assertEquals("this was set from the manager properties!",
((TestCompressionTransformer)t).getBeanProperty1());
assertEquals(12, ((TestCompressionTransformer)t).getBeanProperty2());
assertEquals(t.getReturnClass(), java.lang.String.class);
t = muleContext.getRegistry().lookupTransformer("TestTransformer");
assertNotNull(t);
assertEquals(t.getReturnClass(), byte[].class);
}