@Sharma_Naman3 As per the above exception stack trace which you have shared, its clear that there is no null pointer exception thrown when you mock RequestResponseFactory. null pointer exception is thrown while executing servlet.doGet(request,response); at line 93 in testServlet.getHtmlContent() met...