HyperLogLogPlusIsLessThan extends KoryphePredicate<HyperLogLogPlus> { @JsonProperty("value") public long getControlValue() { return controlValue; } HyperLogLogPlusIsLessThan();  HyperLogLogPlusIsLessThan(final long controlValue);  HyperLogLogPlusIsLessThan(final long controlValue, final boolean orEqualTo); @JsonProperty("value") long getControlValue(); void setControlValue(final long controlValue); boolean getOrEqualTo(); void setOrEqualTo(final boolean orEqualTo); @Override boolean test(final HyperLogLogPlus input); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test @Override public void shouldJsonSerialiseAndDeserialise() throws SerialisationException { final long controlValue = 15; final HyperLogLogPlusIsLessThan filter = new HyperLogLogPlusIsLessThan(controlValue); final String json = new String(JSONSerialiser.serialise(filter, true)); JsonAssert.assertEquals(String.format("{%n" + " \"class\" : \"uk.gov.gchq.gaffer.sketches.clearspring.cardinality.predicate.HyperLogLogPlusIsLessThan\",%n" + " \"orEqualTo\" : false,%n" + " \"value\" : 15%n" + "}"), json); final HyperLogLogPlusIsLessThan deserialisedProperty = JSONSerialiser.deserialise(json.getBytes(), HyperLogLogPlusIsLessThan.class); assertNotNull(deserialisedProperty); assertEquals(controlValue, deserialisedProperty.getControlValue()); }