@Test
public void testSaveMicroServiceHeaderDefaultValues() {

    logger.info("testSaveMicroServiceHeaderDefaultValues: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    request = mock(HttpServletRequest.class);
    try {
        // mock the getReader() call
        jsonString =
                "{\"modelAttributeDictionaryData\": {\"onapName\": \"test\",\"guard\": false,\"priority\": \"3\","
                        + " \"riskType\": \"test\", \"riskLevel\": \"7\", \"modelName\": \"testname\"}}";
        BufferedReader br = new BufferedReader(new StringReader(jsonString));
        when(request.getReader()).thenReturn(br);
        controller.saveMicroServiceHeaderDefaultValues(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("microServiceHeaderDefaultDatas"));
    } catch (Exception e) {
        fail("Exception: " + e);
    }
    logger.info("testSaveMicroServiceHeaderDefaultValues: exit");
}