### Question:
Bitstream extends DSpaceObject { public Bundle[] getBundles() throws SQLException { TableRowIterator tri = DatabaseManager.queryTable(bContext, "bundle", "SELECT bundle.* FROM bundle, bundle2bitstream WHERE " + "bundle.bundle_id=bundle2bitstream.bundle_id AND " + "bundle2bitstream.bitstream_id= ? ", bRow.getIntColumn("bitstream_id")); List<Bundle> bundles = new ArrayList<Bundle>(); try { while (tri.hasNext()) { TableRow r = tri.next(); Bundle fromCache = (Bundle) bContext.fromCache(Bundle.class, r .getIntColumn("bundle_id")); if (fromCache != null) { bundles.add(fromCache); } else { bundles.add(new Bundle(bContext, r)); } } } finally { if (tri != null) { tri.close(); } } Bundle[] bundleArray = new Bundle[bundles.size()]; bundleArray = (Bundle[]) bundles.toArray(bundleArray); return bundleArray; } 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(); boolean isDeleted(); InputStream retrieve(); Bundle[] getBundles(); int getType(); boolean isRegisteredBitstream(); int getStoreNumber(); DSpaceObject getParentObject(); String get_internal_id();  }### Answer:
@Test public void testGetBundles() throws SQLException { assertThat("testGetBundles 0", bs.getBundles(), notNullValue()); assertTrue("testGetBundles 1", bs.getBundles().length == 0); }