@Test
public void testGetOptimizationModelsDictionaryEntityData() {

    logger.info("testGetOptimizationModelsDictionaryEntityData: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    String modelJson = "{\"optimizationModelsDictionaryData\":[\"modelName\"]}";
    BufferedReader br = new BufferedReader(new StringReader(modelJson));
    request = mock(HttpServletRequest.class);
    try {
        // mock the getReader() call
        when(request.getReader()).thenReturn(br);
        controller.getOptimizationModelsDictionaryEntityData(response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
            && response.getContentAsString().contains("optimizationModelsDictionaryDatas"));
    } catch (Exception e) {
        fail("Exception: " + e);
    }
    logger.info("testGetOptimizationModelsDictionaryEntityData: exit");
}