MetadataTest: convert to JUnit