### Question:
Bitstream extends DSpaceObject { public static Bitstream[] findAll(Context context) throws SQLException { TableRowIterator tri = DatabaseManager.queryTable(context, "bitstream", "SELECT * FROM bitstream"); List<Bitstream> bitstreams = new ArrayList<Bitstream>(); try { while (tri.hasNext()) { TableRow row = tri.next(); Bitstream fromCache = (Bitstream) context.fromCache( Bitstream.class, row.getIntColumn("bitstream_id")); if (fromCache != null) { bitstreams.add(fromCache); } else { bitstreams.add(new Bitstream(context, row)); } } } finally { if (tri != null) { tri.close(); } } Bitstream[] bitstreamArray = new Bitstream[bitstreams.size()]; bitstreamArray = bitstreams.toArray(bitstreamArray); return bitstreamArray; } Bitstream(Context context, TableRow row); static Bitstream find(Context context, int id); static Bitstream[] findAll(Context context); int getID(); String getHandle(); int getSequenceID(); void setSequenceID(int sid); String getName(); void setName(String n); String getSource(); void setSource(String n); String getDescription(); void setDescription(String n); String getChecksum(); String getChecksumAlgorithm(); long getSize(); void setUserFormatDescription(String desc); String getUserFormatDescription(); String getFormatDescription(); BitstreamFormat getFormat(); void setFormat(BitstreamFormat f); void update(); InputStream retrieve(); Bundle[] getBundles(); int getType(); boolean isRegisteredBitstream(); int getStoreNumber(); DSpaceObject getParentObject();  }### Answer:
@Test public void testFindAll() throws SQLException { Bitstream[] found = Bitstream.findAll(context); assertThat("testFindAll 0", found, notNullValue()); assertTrue("testFindAll 1", found.length >= 1); boolean added = false; for(Bitstream b: found) { if(b.equals(bs)) { added = true; } } assertTrue("testFindAll 2",added); }