### Question:
OkrBranchMapper implements DataMapper<OkrBranch, OkrBranchDto> { @Override public Collection<OkrBranchDto> mapEntitiesToDtos(Collection<OkrBranch> entities) { Collection<OkrBranchDto> dtos = new ArrayList<>(); entities.forEach(entity -> dtos.add(mapEntityToDto(entity))); return dtos; }  @Override OkrBranch mapDtoToEntity(OkrBranchDto dto); @Override OkrBranchDto mapEntityToDto(OkrBranch entity); @Override Collection<OkrBranch> mapDtosToEntities(Collection<OkrBranchDto> input); @Override Collection<OkrBranchDto> mapEntitiesToDtos(Collection<OkrBranch> entities);  }### Answer:
@Test public void test_mapEntitiesToDots_expectAllAreMapped() { Collection<OkrBranch> entities = Arrays.asList(new OkrBranch(), new OkrBranch(), new OkrBranch()); Collection<OkrBranchDto> dtos = mapper.mapEntitiesToDtos(entities); Assert.assertEquals(entities.size(), dtos.size()); }