@Test
void should_ReturnRepresentationModel_When_ConvertingEntityToRepresentationModel() {

  // given
  WorkbasketAccessItemImpl accessItem =
      (WorkbasketAccessItemImpl) workbasketService.newWorkbasketAccessItem("1", "2");
  accessItem.setId("id");
  accessItem.setAccessName("accessName");
  accessItem.setWorkbasketKey("workbasketKey");
  accessItem.setPermission(READ, false);
  accessItem.setPermission(OPEN, true);
  accessItem.setPermission(APPEND, false);
  accessItem.setPermission(DISTRIBUTE, false);
  accessItem.setPermission(TRANSFER, true);
  accessItem.setPermission(CUSTOM_1, false);
  accessItem.setPermission(CUSTOM_2, false);
  accessItem.setPermission(CUSTOM_3, true);
  accessItem.setPermission(CUSTOM_4, true);
  accessItem.setPermission(CUSTOM_5, true);
  accessItem.setPermission(CUSTOM_6, true);
  accessItem.setPermission(CUSTOM_7, true);
  accessItem.setPermission(CUSTOM_8, true);
  accessItem.setPermission(CUSTOM_9, true);
  accessItem.setPermission(CUSTOM_10, true);
  accessItem.setPermission(CUSTOM_11, true);
  accessItem.setPermission(CUSTOM_12, true);
  // when
  WorkbasketAccessItemRepresentationModel repModel = assembler.toModel(accessItem);
  // then
  testEquality(accessItem, repModel);
  testLinks(repModel);
}