DefaultSyncedIdentity implements SyncedIdentity { @Override public long lastSynced() { return lastSynced; } 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 testLastSynced() { assertEquals(234, si.lastSynced()); assertEquals(234, siGroup.lastSynced()); SyncedIdentity siNeverSynced = new DefaultSyncedIdentity(TestIdentityProvider.ID_TEST_USER, externalUser.getExternalId(), false, -1); assertEquals(-1, siNeverSynced.lastSynced()); }