/**
* Test for the problem scheme management interface.
*/
public void problemSchemes() throws Exception {
IProblemScheme scheme1 =
perfDB.newProblemScheme(new URI("http://test/uri"), "TestScheme",
convertModelTypeToSchemeType(BenchmarkModelType.COMMON),
"Yet another test scheme");
IProblemScheme scheme2 =
perfDB.newProblemScheme(uri, "TestScheme2",
convertModelTypeToSchemeType(BenchmarkModelType.APPLICATION),
"And yet another test scheme");
assertEquals(2, perfDB.getAllProblemSchemes().size());
IProblemScheme scheme = perfDB.getProblemScheme(uri);
assertEquals(scheme2.getName(), scheme.getName());
assertEquals(scheme2.getDescription(), scheme.getDescription());
assertEquals(scheme2.getType(), scheme.getType());
assertEquals(scheme2.getUri(), scheme.getUri());
assertEquals(true, perfDB.deleteProblemScheme(scheme1));
assertEquals(1, perfDB.getAllProblemSchemes().size());
}