### Question:
Bundle extends DSpaceObject { public Item[] getItems() throws SQLException { List<Item> items = new ArrayList<Item>(); TableRowIterator tri = DatabaseManager.queryTable( ourContext, "item", "SELECT item.* FROM item, item2bundle WHERE " + "item2bundle.item_id=item.item_id AND " + "item2bundle.bundle_id= ? ", bundleRow.getIntColumn("bundle_id")); try { while (tri.hasNext()) { TableRow r = (TableRow) tri.next(); Item fromCache = (Item) ourContext.fromCache(Item.class, r .getIntColumn("item_id")); if (fromCache != null) { items.add(fromCache); } else { items.add(new Item(ourContext, r)); } } } finally { if (tri != null) { tri.close(); } } Item[] itemArray = new Item[items.size()]; itemArray = (Item[]) items.toArray(itemArray); return itemArray; } Bundle(Context context, TableRow row); static Bundle find(Context context, int id); int getID(); String getName(); void setName(String name); int getPrimaryBitstreamID(); void setPrimaryBitstreamID(int bitstreamID); void unsetPrimaryBitstreamID(); String getHandle(); Bitstream getBitstreamByName(String name); Bitstream[] getBitstreams(); Item[] getItems(); Bitstream createBitstream(InputStream is); Bitstream registerBitstream(int assetstore, String bitstreamPath); void addBitstream(Bitstream b); void setOrder(int bitstreamIds[]); void removeBitstream(Bitstream b); void update(); int getType(); void inheritCollectionDefaultPolicies(Collection c); void replaceAllBitstreamPolicies(List<ResourcePolicy> newpolicies); List<ResourcePolicy> getBundlePolicies(); List<ResourcePolicy> getBitstreamPolicies(); DSpaceObject getAdminObject(int action); DSpaceObject getParentObject();  }### Answer:
@Test public void testGetItems() throws SQLException { assertThat("testGetItems 0", b.getItems(), notNullValue()); assertThat("testGetItems 1", b.getItems().length, equalTo(0)); }