DefaultSyncedIdentity implements SyncedIdentity { @NotNull @Override public String getId() { return id; } DefaultSyncedIdentity(@NotNull String id, @Nullable ExternalIdentityRef ref, boolean isGroup, long lastSynced); @NotNull @Override String getId(); @Nullable @Override ExternalIdentityRef getExternalIdRef(); @Override boolean isGroup(); @Override long lastSynced(); @Override String toString();  }
@Test public void testGetId() { assertEquals(externalUser.getId(), si.getId()); assertEquals(externalGroup.getId(), siGroup.getId()); SyncedIdentity siOtherId = new DefaultSyncedIdentity("otherId", externalUser.getExternalId(), false, -1); assertEquals("otherId", siOtherId.getId()); }