@Test
public void nonEmptyListTest() {

    DataTransformer appendTransformer = new DataTransformer() {
        public void transform(DataPipe cr) {
            cr.getDataMap().put("Test", "Lorum");
        }
    };
    HashMap<String, DataTransformer> transformerNames = new HashMap<>();
    transformerNames.put("append", appendTransformer);
    InLineTransformerExtension transformerExtension = new InLineTransformerExtension(transformerNames);
    List<Map<String, String>> nonEmptyList = new LinkedList<>();
    nonEmptyList.add(new HashMap<String, String>());
    nonEmptyList.add(new HashMap<String, String>());
    InLineTransformerExtension.TransformTag transformTag = new InLineTransformerExtension.TransformTag();
    transformTag.setName("append");
    List<Map<String, String>> resultList = transformerExtension.pipelinePossibleStates(transformTag, nonEmptyList);
    Assert.assertNotNull(resultList);
    Assert.assertEquals(2, resultList.size());
    Map<String, String> resultMap = resultList.get(0);
    Assert.assertEquals(1, resultMap.keySet().size());
    Assert.assertEquals("Lorum", resultMap.get("Test"));
    resultMap = resultList.get(1);
    Assert.assertEquals(1, resultMap.keySet().size());
    Assert.assertEquals("Lorum", resultMap.get("Test"));
}