source: class DocumentServiceTest {
  
      @EJB(mappedName = "java:app/showcase/DocumentService")
      private DocumentService documentService;
      @PersistenceContext EntityManager em;
      @Inject UserTransaction utx;
      private Long id;
      private String content;
  
      @Test
      public void shouldGetContent() {
  
target:         Response response = documentService.get(id.toString());
          Assert.assertNotNull(response);
          Assert.assertNotNull(response.getEntity());
          Assert.assertEquals(200, response.getStatus());
          Assert.assertTrue(((String) response.getEntity()).contains(content));
      }
  
  }