createAccessor(deviceRepositoryFile);
// Create a test connection
final RepositoryConnection connection = createConnection();
final RepositoryEnumeration enumeration =
accessor.enumerateCategoryNames(connection);
// Check successful operation of the enumeration
assertNotNull("Enumeration over retrieved items should exist", enumeration);
assertTrue("Should be items in the enumeration", enumeration.hasNext());
// Create a list of returned results
final List results = new ArrayList();
while (enumeration.hasNext()) {
results.add(enumeration.next());
}
// Expected results
final String[] expected =
new String[] {"system", "browser", "protocol", "custom"};