Bitstream extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public boolean equals(Object other) { if (other == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other); if (this.getClass() != objClass) { return false; } final Bitstream otherBitstream = (Bitstream) other; if (!this.getID().equals(otherBitstream.getID())) { return false; } return true; } protected  Bitstream(); int getSequenceID(); void setSequenceID(int sid); @Override String getName(); void setName(Context context, String n); String getSource(); void setSource(Context context, String n); String getDescription(); void setDescription(Context context, String n); String getChecksum(); void setChecksum(String checksum); String getChecksumAlgorithm(); void setChecksumAlgorithm(String checksumAlgorithm); long getSize(); void setSizeBytes(long sizeBytes); String getUserFormatDescription(); BitstreamFormat getFormat(Context context); boolean isDeleted(); void setDeleted(boolean deleted); List<Bundle> getBundles(); @Override int getType(); Collection getCollection(); Community getCommunity(); int getStoreNumber(); void setStoreNumber(int storeNumber); String getInternalId(); void setInternalId(String internalId); void setUserFormatDescription(Context context, String desc); String getFormatDescription(Context context); void setFormat(Context context, BitstreamFormat f); @Override Integer getLegacyId(); @Override boolean equals(Object other); @Override int hashCode();  }
@Test public void testFindAll() throws SQLException { List<Bitstream> found = bitstreamService.findAll(context); assertThat("testFindAll 0", found, notNullValue()); assertTrue("testFindAll 1", found.size() >= 1); boolean added = false; for(Bitstream b: found) { if(b.equals(bs)) { added = true; } } assertTrue("testFindAll 2",added); }