@Test
public void maxLenTest() {

    Map<String, String> variableDomains = new HashMap<>();
    List<Map<String, String>> listOfMaps = new LinkedList<>();
    listOfMaps.add(variableDomains);
    NegativeBoundHiveVarchar maxLenTest = new NegativeBoundHiveVarchar();
    NegativeBoundHiveVarchar.NegativeBoundHiveVarcharTag neg = new NegativeBoundHiveVarchar.NegativeBoundHiveVarcharTag();
    neg.setName("name");
    neg.setLength("18");
    neg.setMaxLen("10");
    Assert.assertEquals(neg.getMaxLen(), "10");
    List<Map<String, String>> newList = maxLenTest.pipelinePossibleStates(neg, listOfMaps);
    neg.setMaxLen("100");
    Assert.assertEquals(newList.get(0).get("name").length(), 1);
    Assert.assertEquals(newList.get(1).get("name").length(), 11);
}