@Test public void test_getDocumentById_docExists() { IDocument doc = docDatabaseClientToTest.getDocumentById(DOC1_ID); Assert.assertEquals(DOC1_ID, doc.getId()); }
@Override public IDocument getDocumentById(String id) { return em.find(Document.class, id); }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public IDocument getDocumentById(String id) { return em.find(Document.class, id); } }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public IDocument getDocumentById(String id) { return em.find(Document.class, id); }  }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public IDocument getDocumentById(String id) { return em.find(Document.class, id); }  @Override IDocument saveDocument(IDocument document); @Override IDocument getDocumentById(String id); @Override List<IDocument> getDocumentByUploadId(String uploadId); @Override List<IDocument> getDocumentsByUsername(String username); }
DocumentDatabaseClient extends DatabaseClient<IDocument> implements
        IDocumentDatabaseClient { @Override public IDocument getDocumentById(String id) { return em.find(Document.class, id); }  @Override IDocument saveDocument(IDocument document); @Override IDocument getDocumentById(String id); @Override List<IDocument> getDocumentByUploadId(String uploadId); @Override List<IDocument> getDocumentsByUsername(String username);  }