@Test
public void testGetRecordsAllWithFilterForSubject()
                        throws Exception {

    StoredISORecords storedIsoRecords = getStoredIsoRecords();
    Literal<PrimitiveValue> literal = new Literal<PrimitiveValue>( "SPOT 2" );
    Operator operator = new PropertyIsEqualTo( new ValueReference( "Subject", nsContext ), literal, true, null );
    Filter filter = new OperatorFilter( operator );
    MetadataQuery query = new MetadataQuery( null, null, filter, null, 1, 100 );
    MetadataResultSet<ISORecord> allRecords = storedIsoRecords.getRecords( query );
    assertEquals( 1, allRecords.getRemaining() );
}