@Test
public void testGetRecordById()
                        throws SQLException, MetadataStoreException, UnsupportedEncodingException, IOException,
                        MetadataInspectorException {

    if ( insertSuccess ) {
        LOG.info( "Could not insert test datasets, skip testGetRecordById" );
        return;
    }
    Connection conn = getConnection();
    if ( conn == null ) {
        LOG.info( "Could not get database connection, skip testGetRecordById" );
        return;
    }
    MetadataResultSet<RegistryObject> recordById = store.getRecordById( Collections.singletonList( id_rec1 ), null );
    assertNotNull( recordById );
    recordById.next();
    RegistryObject record = recordById.getRecord();
    Assert.assertNotNull( record );
    assertEquals( id_rec1, record.getIdentifier() );
}