public void execute(File repository) throws Exception {
DeviceRepositoryAccessorManager manager =
new DeviceRepositoryAccessorManager(
repository.getPath(),
new TestTransformerMetaFactory(),
new DefaultJDOMFactory(), false);
String[] patterns = manager.getUserAgentPatterns("PC");
assertEquals("Expected 5 user agent patterns ", 5, patterns.length);
assertEquals("Unexpected first pattern", "Mozilla/4.*", patterns[0]);