### Question:
IndexQuery { public static ExactPredicate exact( int propertyKeyId, Object value ) { return new ExactPredicate( propertyKeyId, value ); } protected  IndexQuery( int propertyKeyId ); static ExistsPredicate exists( int propertyKeyId ); static ExactPredicate exact( int propertyKeyId, Object value ); static RangePredicate<?> range( int propertyKeyId,
                                        Number from, boolean fromInclusive,
                                        Number to, boolean toInclusive ); static RangePredicate<?> range( int propertyKeyId,
                                        String from, boolean fromInclusive,
                                        String to, boolean toInclusive ); static RangePredicate<?> range( int propertyKeyId,
                                                              VALUE from, boolean fromInclusive,
                                                              VALUE to, boolean toInclusive ); static RangePredicate<?> range( int propertyKeyId, ValueGroup valueGroup ); static RangePredicate<?> range( int propertyKeyId, CoordinateReferenceSystem crs ); static StringPrefixPredicate stringPrefix( int propertyKeyId, TextValue prefix ); static StringContainsPredicate stringContains( int propertyKeyId, TextValue contains ); static StringSuffixPredicate stringSuffix( int propertyKeyId, TextValue suffix ); static ValueTuple asValueTuple( IndexQuery.ExactPredicate... query ); abstract IndexQueryType type(); @SuppressWarnings( "EqualsWhichDoesntCheckParameterClass" ) @Override final boolean equals( Object other ); @Override final int hashCode(); @Override final String toString(); final int propertyKeyId(); abstract boolean acceptsValue( Value value ); boolean acceptsValueAt( PropertyCursor property ); abstract ValueGroup valueGroup();  }### Answer:
@Test public void testExact() { assertExactPredicate( "string" ); assertExactPredicate( 1 ); assertExactPredicate( 1.0 ); assertExactPredicate( true ); assertExactPredicate( new long[]{1L} ); assertExactPredicate( Values.pointValue( CoordinateReferenceSystem.WGS84, 12.3, 45.6 ) ); }
@Test public void testExact_ComparingBigDoublesAndLongs() { ExactPredicate p = IndexQuery.exact( propId, 9007199254740993L ); assertFalse( test( p, 9007199254740992D ) ); }