### Question:
MetadataValue { public void delete(Context context) throws SQLException, AuthorizeException { log.info(LogManager.getHeader(context, "delete_metadata_value", " metadata_value_id=" + getValueId())); DatabaseManager.delete(context, row); } MetadataValue(TableRow row);  MetadataValue();  MetadataValue(MetadataField field); int getFieldId(); void setFieldId(int fieldId); int getItemId(); void setItemId(int itemId); String getLanguage(); void setLanguage(String language); int getPlace(); void setPlace(int place); int getValueId(); String getValue(); void setValue(String value); String getAuthority(); void setAuthority(String value); int getConfidence(); void setConfidence(int value); void create(Context context); static MetadataValue find(Context context, int valueId); static List<MetadataValue> findByField(Context context, int fieldId); void update(Context context); void delete(Context context); @Override boolean equals(Object obj); @Override int hashCode(); public String value; public String language; public int place; public String authority; public int confidence; }### Answer:
@Test public void testDelete() throws Exception { mv.create(context); int id = mv.getValueId(); mv.delete(context); MetadataValue found = MetadataValue.find(context, id); assertThat("testDelete 0",found, nullValue()); }