@Test
public void testSaveRainyDayDictionary() {

    logger.info("testSaveRainyDayDictionary: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    request = mock(HttpServletRequest.class);
    try {
        // mock the getReader() call
        jsonString = "{\"rainyDayDictionaryData\":{\"bbid\":\"BB2\",\"workstep\":\"1\",\"userDataTypeValues\""
                + ":[{\"$$hashKey\":\"object:233\",\"treatment\":\"test1\"},{\"$$hashKey\":\"object:239\","
                + "\"treatment\":\"test2\"}]},\"userid\":\"mm117s\"}";
        BufferedReader br = new BufferedReader(new StringReader(jsonString));
        when(request.getReader()).thenReturn(br);
        controller.saveRainyDayDictionary(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("rainyDayDictionaryDatas"));
    } catch (Exception e) {
        logger.error("Exception Occured" + e);
        fail("Exception: " + e);
    }
    logger.info("testSaveRainyDayDictionary: exit");
}