// Now test with lots of tacs.
int tacCount = populateWithTACs(conn);
enumeration = accessor.enumerateDeviceTACs(connection);
int actual = 0;
while(enumeration.hasNext()) {
DeviceTACPair pair =
(DeviceTACPair) enumeration.next();
if (pair.getTAC() == 350612) {
assertEquals("Device 350612 should be Nokia-6210",
"Nokia-6210", pair.getDeviceName());
} else {
assertEquals("Name should match: ",
"device-" + pair.getTAC(), pair.getDeviceName());
}
++actual;
}
assertEquals("Number of tacs should match", tacCount, actual);