### Question:
CpkApi { @GET @Path( "/ping" ) public String ping() { return PING_RESPONSE + getPluginName(); } CpkApi(); @GET @Path( "/{resource: .+properties}" ) Response localizationResourceGet( @PathParam( "pluginId" ) String pluginId,
                                           @PathParam( "resource" ) String resource,
                                           @Context HttpServletRequest request ); @POST @Path( "/{resource: .+properties}" ) Response localizationResourcePost( @PathParam( "pluginId" ) String pluginId,
                                            @PathParam( "resource" ) String resource,
                                            @Context HttpServletRequest request ); @GET @Path( "/{param}" ) Response genericEndpointGet( @PathParam( "param" ) String param,
                                  @Context HttpServletRequest request,
                                  @Context HttpServletResponse response,
                                  @Context HttpHeaders headers ); @POST @Path( "/{param}" ) Response genericEndpointPost( @PathParam( "param" ) String param,
                                   @Context HttpServletRequest request,
                                   @Context HttpServletResponse response,
                                   @Context HttpHeaders headers ); @GET @Path( "/ping" ) String ping(); @GET @Path( "/default" ) Response defaultElement(); @GET @Path( "/reload" ) @Produces( MimeTypes.PLAIN_TEXT ) Response reload( @Context HttpServletRequest request,
                      @Context HttpServletResponse response,
                      @Context HttpHeaders headers ); @GET @Path( "/refresh" ) @Produces( MimeTypes.PLAIN_TEXT ) Response refreshGet( @Context HttpServletRequest request,
                          @Context HttpServletResponse response,
                          @Context HttpHeaders headers ); @POST @Path( "/refresh" ) @Produces( MimeTypes.PLAIN_TEXT ) Response refreshPost( @Context HttpServletRequest request,
                           @Context HttpServletResponse response,
                           @Context HttpHeaders headers ); @GET @Path( "/version" ) @Produces( MimeTypes.PLAIN_TEXT ) Response version( @PathParam( "pluginId" ) String pluginId ); @GET @Path( "/status" ) @Produces( MimeTypes.PLAIN_TEXT ) Response status( @Context HttpServletRequest request,
                      @Context HttpServletResponse response,
                      @Context HttpHeaders headers ); @GET @Path( "/getSitemapJson" ) @Produces( MediaType.APPLICATION_JSON ) Response getSitemapJson(); @GET @Path( "/elementsList" ) @Produces( MediaType.TEXT_HTML ) Response elementsList(); @GET @Path( "/listDataAccessTypes" ) @Produces( MediaType.APPLICATION_JSON ) /**/ Response listDataAccessTypes(); @GET @Path( "/reloadPlugins" ) Response reloadPluginsGet(); @POST @Path( "/reloadPlugins" ) Response reloadPluginsPost(); @GET @Path( "/clearCache" ) Response clearKettleResultsCache(); void createContent( Map<String, Map<String, Object>> bloatedMap );  }### Answer:
@Test public void testPing() { String actualResult = cpkApi.ping(); assertEquals( cpkApi.PING_RESPONSE + cpkApi.getPluginName(), actualResult ); }