@Test
public void regexEmailTest() {

    DataPipe pipeToTransform = new DataPipe();
    EquivalenceClassTransformer eqTransformer = new EquivalenceClassTransformer();
    String testRegularExpression = "^([a-z0-9_\\.-]+)@([\\da-z\\.-]+)\\.([a-z\\.]{2,6})$";
    pipeToTransform.getDataMap().put("TEST", "%regex(" + testRegularExpression + ")");
    eqTransformer.transform(pipeToTransform);
    Pattern pattern = Pattern.compile(testRegularExpression);
    Matcher didItMatch = pattern.matcher(pipeToTransform.getDataMap().get("TEST"));
    Assert.assertTrue(didItMatch.matches());
}