@Test
public void testIsCandidateRegistered() throws CandidateAlreadyRegisteredException {

    DistributedEntityOwnershipService service = DistributedEntityOwnershipService.start(dataStore.getActorUtils(),
            EntityOwnerSelectionStrategyConfig.newBuilder().build());
    final DOMEntity test = new DOMEntity("test-type", "test");
    assertFalse(service.isCandidateRegistered(test));
    service.registerCandidate(test);
    assertTrue(service.isCandidateRegistered(test));
    service.close();
}