W1Master { public List<String> getDeviceIDs() { final List<String> ids = new ArrayList<>(); for (final File deviceDir : getDeviceDirs()) { ids.add(deviceDir.getName()); } return ids; } W1Master();  W1Master(final ClassLoader classloader);  W1Master(final String masterDir);  W1Master(final String masterDir, final ClassLoader classloader); void checkDeviceChanges(); Collection<W1DeviceType> getDeviceTypes(); Map<String, W1DeviceType> getDeviceTypeMap(); List<String> getDeviceIDs(); List<W1Device> getDevices(); @SuppressWarnings("unchecked") List<T> getDevices(final int deviceFamilyId); @SuppressWarnings("unchecked") List<T> getDevices(final Class<T> type); @SuppressWarnings("unchecked") List<T> getW1Devices(final Class<T> type); @Override String toString();  }
@Test public void thereShouldBeThreeDevices() { final List<String> deviceIDs = master.getDeviceIDs(); assertEquals(3, deviceIDs.size()); assertTrue(deviceIDs.contains("28-00000698ebb1")); assertTrue(deviceIDs.contains("28-00000698ebb2")); }