@Test
public void dateTest() {

    Map<String, String> variableDomains = new HashMap<>();
    List<Map<String, String>> listOfMaps = new LinkedList<>();
    listOfMaps.add(variableDomains);
    NegativeBoundHiveDate dateTest = new NegativeBoundHiveDate();
    NegativeBoundHiveDate.NegativeBoundHiveDateTag tag = new NegativeBoundHiveDate.NegativeBoundHiveDateTag();
    tag.setName("name");
    tag.setEarliest("2012-12-31");
    tag.setLatest("2014-01-01");
    List<Map<String, String>> newList = dateTest.pipelinePossibleStates(tag, listOfMaps);
    Assert.assertEquals(newList.get(0).get("name"), "2012-12-30");
    Assert.assertEquals(newList.get(1).get("name"), "2014-01-02");
    Assert.assertEquals(newList.get(2).get("name"), "01-02-2014");
    Assert.assertEquals(newList.size(), 4);
}