ConfigMapLock implements Lock { @Override public String identity() { return identity; } ConfigMapLock(String configMapNamespace, String configMapName, String identity); @Override LeaderElectionRecord get(C client); @Override void create(
    C client, LeaderElectionRecord leaderElectionRecord); @Override void update(
    C client, LeaderElectionRecord leaderElectionRecord); @Override String identity(); @Override String describe();  }
@Test void identityShouldReturnProvidedIdentity() { final ConfigMapLock configMapLock = new ConfigMapLock("namespace", "name", "1337"); final String identity = configMapLock.identity(); assertEquals("1337", identity); }