@Test
public void addingAndCallingTransformersByNameTest() {

    CallCheckTransformer dummyTransformerOne = new CallCheckTransformer();
    CallCheckTransformer dummyTransformerTwo = new CallCheckTransformer();
    CallCheckTransformer dummyTransformerThree = new CallCheckTransformer();
    HashMap<String, DataTransformer> transformerNames = new HashMap<>();
    transformerNames.put("one", dummyTransformerOne);
    transformerNames.put("two", dummyTransformerTwo);
    transformerNames.put("three", dummyTransformerThree);
    InLineTransformerExtension transformerExtension = new InLineTransformerExtension(transformerNames);
    List<Map<String, String>> pipelineInput = new LinkedList<>();
    pipelineInput.add(new HashMap<String, String>());
    InLineTransformerExtension.TransformTag transformTag = new InLineTransformerExtension.TransformTag();
    transformTag.setName("two");
    transformerExtension.pipelinePossibleStates(transformTag, pipelineInput);
    Assert.assertFalse(dummyTransformerOne.isWasCalled());
    Assert.assertTrue(dummyTransformerTwo.isWasCalled());
    Assert.assertFalse(dummyTransformerThree.isWasCalled());
}