### Question:
PingResource { String getPingContent() { return CONTENT; }  @GET @Produces({APPLICATION_JSON, TEXT_PLAIN}) Response doGet(); @POST @Produces({APPLICATION_JSON, TEXT_PLAIN}) Response doPost(); static final String CONTENT; }### Answer:
@Test public void testPingCdoGetontent() { PingResource pr = new PingResource(); Assert.assertEquals(pr.getPingContent(), pr.CONTENT); }