public void testEncodeClearTextPassword() {
assertEquals("21232f297a57a5a743894a0e4a801fc3", jtrac.encodeClearText("admin"));
}
public void testMetadataInsertAndLoad() {
Metadata m1 = getMetadata();
jtrac.storeMetadata(m1);
assertTrue(m1.getId() > 0);
Metadata m2 = jtrac.loadMetadata(m1.getId());
assertTrue(m2 != null);
Map<Field.Name, Field> fields = m2.getFields();
assertTrue(fields.size() == 2);
}