@Test
public void lengthTest2() {

    Map<String, String> variableDomains = new HashMap<>();
    List<Map<String, String>> listOfMaps = new LinkedList<>();
    listOfMaps.add(variableDomains);
    PositiveBoundHiveVarchar maxLenTest = new PositiveBoundHiveVarchar();
    PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag pos = new PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag();
    pos.setName("name");
    pos.setMaxLen("10");
    Assert.assertEquals(pos.getMaxLen(), "10");
    pos.setMaxLen("12");
    Assert.assertEquals(pos.getMaxLen(), "12");
    List<Map<String, String>> newList = maxLenTest.pipelinePossibleStates(pos, listOfMaps);
    Assert.assertEquals(newList.get(0).get("name").length(), 1);
    Assert.assertEquals(newList.get(1).get("name").length(), 10);
}