@Test
public void testGetRecordsWithLimitedMaxRecord()
                        throws Exception {

    StoredISORecords storedIsoRecords = getStoredIsoRecords();
    int maxRecords = 2;
    MetadataQuery query = new MetadataQuery( null, null, null, null, 1, maxRecords );
    MetadataResultSet<ISORecord> allRecords = storedIsoRecords.getRecords( query );
    assertEquals( maxRecords, allRecords.getRemaining() );
}