### Question:
Trigger { public static Statement neq(int key, Object value) { return new NotEqualStatement(key, value); } private  Trigger(); static Statement all(Statement... statements); static Statement any(Statement... statements); static Statement none(Statement... statements); static Statement eq(int key, Object value); static Statement neq(int key, Object value); static Statement gt(int key, Object value); static Statement lt(int key, Object value); static Statement lte(int key, Object value); static Statement gte(int key, Object value);  }### Answer:
@Test public void notEqual_validatesToFalse() throws Exception { RouteProgress routeProgress = buildTriggerRouteProgress(); Milestone milestone = new StepMilestone.Builder() .setTrigger( Trigger.neq(TriggerProperty.STEP_DISTANCE_TOTAL_METERS, routeProgress.currentLegProgress().currentStep().distance()) ) .build(); boolean result = milestone.isOccurring(routeProgress, routeProgress); Assert.assertFalse(result); }
@Test public void notEqual_validatesToTrue() throws Exception { RouteProgress routeProgress = buildTriggerRouteProgress(); Milestone milestone = new StepMilestone.Builder() .setTrigger( Trigger.neq(TriggerProperty.STEP_DISTANCE_TOTAL_METERS, 100d) ) .build(); boolean result = milestone.isOccurring(routeProgress, routeProgress); Assert.assertTrue(result); }