### Question:
BaseHopServerPlugin extends BaseHttpServlet implements IHopServerPlugin, IHopServerRequestHandler { public String getService() { return getContextPath() + " (" + toString() + ")"; }  @Deprecated @Override void doGet( HttpServletRequest req, final HttpServletResponse resp ); @Override abstract void handleRequest( IHopServerRequest request ); @Override abstract String getContextPath(); String getService(); String toString();  }### Answer:
@Test public void testGetService() throws Exception { when( baseHopServerPlugin.getContextPath() ) .thenReturn( "/Path" ); assertThat( baseHopServerPlugin.getService().startsWith( "/Path" ), is( true ) ); }