public void getTransformerFactory() {
final Hashtable<String,Object> testAttributes = new Hashtable<String,Object>();
BrokerPool mockBrokerPool = EasyMock.createMock(BrokerPool.class);
Configuration mockConfiguration = EasyMock.createMock(Configuration.class);
expect(mockBrokerPool.getConfiguration()).andReturn(mockConfiguration);
expect(mockConfiguration.getProperty(TransformerFactoryAllocator.PROPERTY_TRANSFORMER_CLASS)).andReturn(transformerFactoryClass);
expect(mockBrokerPool.getConfiguration()).andReturn(mockConfiguration);
expect(mockConfiguration.getProperty(TransformerFactoryAllocator.PROPERTY_TRANSFORMER_ATTRIBUTES)).andReturn(testAttributes);
replay(mockBrokerPool, mockConfiguration);
SAXTransformerFactory transformerFactory = TransformerFactoryAllocator.getTransformerFactory(mockBrokerPool);
assertEquals(transformerFactoryClass, transformerFactory.getClass().getName());