@Before
public void setUp() throws Exception
{
TransformerResolver transformerResolver = mock(TransformerResolver.class);
when(transformerResolver.resolve(DataTypeFactory.STRING, APPLE_DATA_TYPE)).thenReturn(stringToApple);
when(transformerResolver.resolve(APPLE_DATA_TYPE, DataTypeFactory.STRING)).thenReturn(appleToString);
muleRegistryHelper.registerObject("mockTransformerResolver", transformerResolver);
muleRegistryHelper.registerObject("StringToAppleConverter", stringToApple);
muleRegistryHelper.registerObject("AppleToStringConverter", appleToString, appleToString.getClass());