@Test
public void testGetPSServiceEntityDataByName() {

    when(commonClassDao.getDataByColumn(PolicyScopeService.class, "name")).thenReturn(data);
    controller.getPSServiceEntityDataByName(response);
    try {
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("psServiceDictionaryDatas"));
    } catch (Exception e) {
        fail();
        logger.error(e.getMessage(), e);
    }
}