@Test
public void checkMongoRegExpGenerationForModules(){

    final DbOrganization organization = new DbOrganization();
    organization.setName("testOrganization");
    organization.getCorporateGroupIdPrefixes().add(GrapesTestUtils.CORPORATE_GROUPID_4TEST);
    final CorporateFilter filter = new CorporateFilter(organization);
    Map<String, Object> params = filter.moduleFilterFields();
    assertNotNull(params);
    assertEquals(1, params.size());
    assertEquals(DbModule.ORGANIZATION_DB_FIELD, params.keySet().iterator().next());
    assertEquals(organization.getName(), params.values().iterator().next());
}