@Test(expected = IllegalArgumentException.class)
public void testCompareToDurationInvalid() throws DatatypeConfigurationException {

    System.out.println("TModelInstanceDetailsComparator.compare testCompareToDurationInvalid");
    TModelInstanceDetails lhs = new TModelInstanceDetails();
    lhs.getTModelInstanceInfo().add(new TModelInstanceInfo());
    lhs.getTModelInstanceInfo().get(0).setTModelKey("hi");
    lhs.getTModelInstanceInfo().get(0).setInstanceDetails(new InstanceDetails());
    lhs.getTModelInstanceInfo().get(0).getInstanceDetails().setInstanceParms("asdasd");
    TModelInstanceDetails rhs = new TModelInstanceDetails();
    rhs.getTModelInstanceInfo().add(new TModelInstanceInfo());
    rhs.getTModelInstanceInfo().get(0).setTModelKey("hi");
    rhs.getTModelInstanceInfo().get(0).setInstanceDetails(new InstanceDetails());
    rhs.getTModelInstanceInfo().get(0).getInstanceDetails().setInstanceParms("asdasd");
    TModelInstanceDetailsComparator instance = new TModelInstanceDetailsComparator("hi", false, false, true);
    int result = instance.compare(lhs, rhs);
    Assert.assertTrue("result " + result, result == 0);
}