@Test
public void phoneDomesticUSAWithExtTest() {

    DataPipe pipeToTransform = new DataPipe();
    EquivalenceClassTransformer eqTransformer = new EquivalenceClassTransformer();
    
    for (int i = 0; i < 500; i++) {
        pipeToTransform.getDataMap().put("TEST_phoneDomesticUSAWithExt", "%phoneDomesticUSAWithExt");
        eqTransformer.transform(pipeToTransform);
        Pattern alphaWithSpacesPattern = Pattern.compile("^([2-9]\\d{2})(\\D*)([2-9]\\d{2})(\\D*)"
                + "(\\d{4})((\\D{1})(ext|e|extension)?(\\D*)(\\d*))?$");
        Matcher didItMatch = alphaWithSpacesPattern.matcher(pipeToTransform.getDataMap().get("TEST_phoneDomesticUSAWithExt"));
        Assert.assertTrue("Wrong USA domestic phone number with extension generation! Created '" 
        + pipeToTransform.getDataMap().get("TEST_phoneDomesticUSAWithExt") + "'...", didItMatch.matches());
    }
}