@Test(expected = NullPointerException.class)
public void testDoDeletePdp() throws IOException {

    CommonClassDao dao = Mockito.mock(CommonClassDao.class);
    DeleteHandler handler = new DeleteHandler(dao);
    OnapLoggingContext loggingContext = new OnapLoggingContext();
    // Mock request
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setBodyContent(
        "{\n\"PAPPolicyType\": \"StdPAPPolicy\", \"policyName\": \"foo.Config_name.1.xml\", \"deleteCondition\": \"All Versions\"\n}\n");
    MockHttpServletResponse response = new MockHttpServletResponse();
    handler.doApiDeleteFromPdp(request, response, loggingContext);
}