### Question:
BitstreamFormat { public static BitstreamFormat find(Context context, int id) throws SQLException { BitstreamFormat fromCache = (BitstreamFormat) context.fromCache( BitstreamFormat.class, id); if (fromCache != null) { return fromCache; } TableRow row = DatabaseManager.find(context, "bitstreamformatregistry", id); if (row == null) { if (log.isDebugEnabled()) { log.debug(LogManager.getHeader(context, "find_bitstream_format", "not_found,bitstream_format_id=" + id)); } return null; } if (log.isDebugEnabled()) { log.debug(LogManager.getHeader(context, "find_bitstream_format", "bitstream_format_id=" + id)); } return new BitstreamFormat(context, row); } BitstreamFormat(Context context, TableRow row); static BitstreamFormat find(Context context, int id); static BitstreamFormat findByMIMEType(Context context,
            String mimeType); static BitstreamFormat findByShortDescription(Context context,
            String desc); static BitstreamFormat findUnknown(Context context); static BitstreamFormat[] findAll(Context context); static BitstreamFormat[] findNonInternal(Context context); static BitstreamFormat create(Context context); final int getID(); final String getShortDescription(); final void setShortDescription(String s); final String getDescription(); final void setDescription(String s); final String getMIMEType(); final void setMIMEType(String s); final int getSupportLevel(); String getSupportLevelText(); final void setSupportLevel(int sl); final boolean isInternal(); final void setInternal(boolean b); void update(); void delete(); String[] getExtensions(); void setExtensions(String[] exts); static int getSupportLevelID(String slevel); static final int UNKNOWN; static final int KNOWN; static final int SUPPORTED; }### Answer:
@Test public void testFind() throws SQLException { BitstreamFormat found = BitstreamFormat.find(context, 1); assertThat("testFind 0", found, notNullValue()); assertThat("testFind 1", found.getShortDescription(), equalTo("Unknown")); found = BitstreamFormat.find(context, 2); assertThat("testFind 2", found, notNullValue()); assertThat("testFind 3", found.getShortDescription(), equalTo("License")); assertTrue("testFind 4", found.isInternal()); }