@Test
@FixFor( "MODE-2302" )
public void shouldMarkBinariesAsUsed() throws Exception {

    BinaryStore binaryStore = getBinaryStore();
    binaryStore.storeValue(new ByteArrayInputStream(IN_MEMORY_BINARY), false);
    binaryStore.markAsUnused(Arrays.asList(IN_MEMORY_KEY));
    Thread.sleep(100);
    binaryStore.markAsUsed(Arrays.asList(IN_MEMORY_KEY));
    Thread.sleep(2);
    binaryStore.removeValuesUnusedLongerThan(1, TimeUnit.MILLISECONDS);
    InputStream is = binaryStore.getInputStream(IN_MEMORY_KEY);
    assertNotNull(is);
}