TemporaryFileManager manager = new TemporaryFileManager(
new TestDeviceRepositoryCreator());
manager.executeWith(new TemporaryFileExecutor() {
public void execute(File file) throws Exception {
DeviceRepositoryFactory factory =
DeviceRepositoryFactory.getDefaultInstance();
URL deviceRepositoryUrl = file.toURL();
DeviceRepository repository = factory.getDeviceRepository(
deviceRepositoryUrl, null);
// Test retrieval of an IMEI that exists as an eight-digit TAC
String devName = repository.getDeviceNameByIMEI("350612190161323");
assertEquals("Device 3506121901613238 should be Nokia 6210 Special",