DirectoryBrowseResult { public DirectoryBrowseResult(final long firstResult, final long maxResults) { this.firstResult = firstResult; this.maxResults = maxResults; this.didl = new DIDLContent(); this.itemCount = 0L; this.totalCount = 0L; } DirectoryBrowseResult(final long firstResult, final long maxResults); long getItemCount(); long getTotalCount(); long getFirstResult(); DIDLContent getDidl(); long getResultCount(); BrowseResult buildBrowseResult(final DIDLParser didlParser); void addItem(final String parentNodeId, final ContentNode contentNode, final String url); void addContainer(final String parentNodeId, final MediaNode node, final int childCount); boolean acceptNode();  }
@Test public void testDirectoryBrowseResult() { DirectoryBrowseResult directoryBrowseResult = new DirectoryBrowseResult(0, 1); assertEquals(directoryBrowseResult.getFirstResult(), 0); assertEquals(directoryBrowseResult.getTotalCount(), 0); assertEquals(directoryBrowseResult.getItemCount(), 0); assertNotNull(directoryBrowseResult.getDidl()); }