@Test
@SuppressWarnings("checkstyle:IllegalCatch")
public void testGetShardIdentifier() {

    assertEquals(shardAccess.getShardIdentifier(), TEST_ID);
    // closed shard access should throw illegal state
    shardAccess.close();
    try {
        shardAccess.getShardIdentifier();
        fail("Exception expected");
    } catch (final Exception e) {
        assertTrue(e instanceof IllegalStateException);
    }
}