@Test
public void getPercentOfDeleted() {

    IndexElt expected = new IndexElt.IndexEltBuilder()
            .id(214803434770010112L)
            .type(1)
            .partition(new Partition(0, 0))
            .offset(0L)
            .length(1L)
            .deleted(true)
            .metadata(ImmutableMap.of("key", "value"))
            .crc(42L)
            .updated(now(UTC).minusSeconds(indexConfiguration.getGcGraceTime() + 1).getMillis())
            .build();
    indexService.add(expected);
    assertEquals(FileUtils.getPercentOfDeleted(fileConfiguration, indexService, new Partition(0, 0)), 1);
}