DefaultSyncResultImpl implements SyncResult { public void setStatus(@NotNull Status status) { this.status = status; } DefaultSyncResultImpl(@Nullable DefaultSyncedIdentity id, @NotNull Status status); @Override @Nullable DefaultSyncedIdentity getIdentity(); @Override @NotNull Status getStatus(); void setStatus(@NotNull Status status);  }
@Test public void testSetStatus() { DefaultSyncResultImpl res = new DefaultSyncResultImpl(null, SyncResult.Status.NOP); for (SyncResult.Status s : SyncResult.Status.values()) { res.setStatus(s); assertSame(s, res.getStatus()); } }