@Test
void should_DetermineDifferences_When_ComparingEmptyWorkbasketAccessItemWithNonEmptyWai() {

  WorkbasketAccessItemImpl oldWorkbasketAccessItem = new WorkbasketAccessItemImpl();
  oldWorkbasketAccessItem.setId("oldId");
  oldWorkbasketAccessItem.setAccessId("oldAccessId");
  oldWorkbasketAccessItem.setWorkbasketId("oldWorkbasketId");
  WorkbasketAccessItemImpl newWorkbasketAccessItem = new WorkbasketAccessItemImpl();
  JSONArray changedAttributes =
      new JSONObject(
              ObjectAttributeChangeDetector.determineChangesInAttributes(
                  oldWorkbasketAccessItem, newWorkbasketAccessItem))
          .getJSONArray("changes");
  assertThat(changedAttributes).hasSize(3);
  changedAttributes =
      new JSONObject(
              ObjectAttributeChangeDetector.determineChangesInAttributes(
                  newWorkbasketAccessItem, oldWorkbasketAccessItem))
          .getJSONArray("changes");
  assertThat(changedAttributes).hasSize(3);
}