assertFalse(spec1.hashCode() == spec2.hashCode());
}
public void testEquals() {
Instant valuationTime = Instant.now();
CalculationJobSpecification spec1 = new CalculationJobSpecification(UniqueId.of("Test", "ViewProcess"), "config", valuationTime, 1L);
assertTrue(spec1.equals(spec1));
assertFalse(spec1.equals(null));
assertFalse(spec1.equals("Kirk"));
CalculationJobSpecification spec2 = new CalculationJobSpecification(UniqueId.of("Test", "ViewProcess"), "config", valuationTime, 1L);
assertTrue(spec1.equals(spec2));
spec2 = new CalculationJobSpecification(UniqueId.of("Test", "ViewCycle2"), "config", valuationTime, 1L);
assertFalse(spec1.equals(spec2));
spec2 = new CalculationJobSpecification(UniqueId.of("Test", "ViewCycle"), "config2", valuationTime, 1L);
assertFalse(spec1.equals(spec2));
spec2 = new CalculationJobSpecification(UniqueId.of("Test", "ViewCycle"), "config", valuationTime.plusMillis(1), 1L);
assertFalse(spec1.equals(spec2));
spec2 = new CalculationJobSpecification(UniqueId.of("Test", "ViewCycle"), "config", valuationTime, 2L);
assertFalse(spec1.equals(spec2));
}