DataPipe { public Map<String, String> getDataMap() { return dataMap; } DataPipe();  DataPipe(final DataConsumer dataConsumer);  DataPipe(final long maxNumberOfLines, final AtomicBoolean flag); DataConsumer getDataConsumer(); Map<String, String> getDataMap(); String getPipeDelimited(String[] outTemplate); String getDelimited(String[] outTemplate, String separator);  }
@Test public void testDataMap() { DataPipe thePipe = new DataPipe(); thePipe.getDataMap().put("var1", "var1val"); thePipe.getDataMap().put("var2", "var2val"); thePipe.getDataMap().put("var3", "var3val"); thePipe.getDataMap().put("var4", "var4val"); thePipe.getDataMap().put("var5", "var5val"); Assert.assertEquals(5, thePipe.getDataMap().size()); Assert.assertEquals("var1val", thePipe.getDataMap().get("var1")); Assert.assertEquals("var2val", thePipe.getDataMap().get("var2")); Assert.assertEquals("var3val", thePipe.getDataMap().get("var3")); Assert.assertEquals("var4val", thePipe.getDataMap().get("var4")); Assert.assertEquals("var5val", thePipe.getDataMap().get("var5")); }