@Test
public void numberTest() {

    DataPipe pipeToTransform = new DataPipe();
    EquivalenceClassTransformer eqTransformer = new EquivalenceClassTransformer();
    pipeToTransform.getDataMap().put("TEST", "%number(5)");
    eqTransformer.transform(pipeToTransform);
    Pattern alphaWithSpacesPattern = Pattern.compile("^[1-9]{1}[\\d]{4}$");
    Matcher didItMatch = alphaWithSpacesPattern.matcher(pipeToTransform.getDataMap().get("TEST"));
    Assert.assertTrue(didItMatch.matches());
    pipeToTransform.getDataMap().put("TEST", "%number(10,10)");
    eqTransformer.transform(pipeToTransform);
    alphaWithSpacesPattern = Pattern.compile("0.[\\d]{10}$");
    didItMatch = alphaWithSpacesPattern.matcher(pipeToTransform.getDataMap().get("TEST"));
    Assert.assertTrue(didItMatch.matches());
    pipeToTransform.getDataMap().put("TEST", "%number(10,5)");
    eqTransformer.transform(pipeToTransform);
    alphaWithSpacesPattern = Pattern.compile("^[\\d]{5}.[\\d]{5}$");
    System.out.println(pipeToTransform.getDataMap().get("TEST"));
    didItMatch = alphaWithSpacesPattern.matcher(pipeToTransform.getDataMap().get("TEST"));
    Assert.assertTrue(didItMatch.matches());
    pipeToTransform.getDataMap().put("TEST", "%number(0,0)");
    eqTransformer.transform(pipeToTransform);
    Assert.assertEquals("", pipeToTransform.getDataMap().get("TEST"));
    pipeToTransform.getDataMap().put("TEST", "%number(0)");
    eqTransformer.transform(pipeToTransform);
    Assert.assertEquals("", pipeToTransform.getDataMap().get("TEST"));
}