### Question:
SupervisedItem extends WorkspaceItem { public static SupervisedItem[] getAll(Context context) throws SQLException { List<SupervisedItem> sItems = new ArrayList<SupervisedItem>(); String query = "SELECT DISTINCT workspaceitem.* " + "FROM workspaceitem, epersongroup2workspaceitem " + "WHERE workspaceitem.workspace_item_id = " + "epersongroup2workspaceitem.workspace_item_id " + "ORDER BY workspaceitem.workspace_item_id"; TableRowIterator tri = DatabaseManager.queryTable(context, "workspaceitem", query); try { while (tri.hasNext()) { TableRow row = tri.next(); SupervisedItem si = new SupervisedItem(context, row); sItems.add(si); } } finally { if (tri != null) { tri.close(); } } return sItems.toArray(new SupervisedItem[sItems.size()]); } SupervisedItem(Context context, TableRow row); static SupervisedItem[] getAll(Context context); Group[] getSupervisorGroups(Context c, int wi); Group[] getSupervisorGroups(); static SupervisedItem[] findbyEPerson(Context context, EPerson ep);  }### Answer:
@Test public void testGetAll() throws Exception { SupervisedItem[] found = SupervisedItem.getAll(context); assertThat("testGetAll 0", found, notNullValue()); assertTrue("testGetAll 1", found.length >= 1); boolean added = false; for(SupervisedItem sia: found) { if(sia.equals(si)) { added = true; } } assertTrue("testGetAll 2",added); }