@Test
public void getDbOrganizationFromOrganization(){

    final Organization organization = DataModelFactory.createOrganization("test");
    organization.getCorporateGroupIdPrefixes().add("com.test");
    final ModelMapper modelMapper = new ModelMapper(mock(RepositoryHandler.class));
    final DbOrganization dbOrganization = modelMapper.getDbOrganization(organization);
    assertEquals(organization.getName(), dbOrganization.getName());
    assertEquals(1, dbOrganization.getCorporateGroupIdPrefixes().size());
    assertEquals(organization.getCorporateGroupIdPrefixes().get(0), dbOrganization.getCorporateGroupIdPrefixes().get(0));
}