### Question:
MetadataSchema { public static MetadataSchema[] findAll(Context context) throws SQLException { List<MetadataSchema> schemas = new ArrayList<MetadataSchema>(); TableRowIterator tri = DatabaseManager.queryTable(context, "MetadataSchemaRegistry", "SELECT * FROM MetadataSchemaRegistry ORDER BY metadata_schema_id"); try { while (tri.hasNext()) { schemas.add(new MetadataSchema(tri.next())); } } finally { if (tri != null) { tri.close(); } } MetadataSchema[] typeArray = new MetadataSchema[schemas.size()]; return (MetadataSchema[]) schemas.toArray(typeArray); } MetadataSchema();  MetadataSchema(int schemaID, String namespace, String name);  MetadataSchema(String namespace, String name);  MetadataSchema(TableRow row); @Override boolean equals(Object obj); @Override int hashCode(); String getNamespace(); void setNamespace(String namespace); String getName(); void setName(String name); int getSchemaID(); void create(Context context); static MetadataSchema findByNamespace(Context context,
            String namespace); void update(Context context); void delete(Context context); static MetadataSchema[] findAll(Context context); static MetadataSchema find(Context context, int id); static MetadataSchema find(Context context, String shortName); static final int DC_SCHEMA_ID; static final String DC_SCHEMA; }### Answer:
@Test public void testFindAll() throws Exception { MetadataSchema[] found = MetadataSchema.findAll(context); assertThat("testFindAll 0",found, notNullValue()); assertTrue("testFindAll 1",found.length >= 1); boolean added = false; for(MetadataSchema msc: found) { if(msc.equals(ms)) { added = true; } } assertTrue("testFindAll 2",added); }