@Test
public void testGetAllDevice() {

    Device deviceA = createDevice("deviceA");
    Device deviceB = createDevice("deviceA");
    List<Device> deviceList = new ArrayList<>();
    deviceList.add(deviceA);
    deviceList.add(deviceB);
    when(m_deviceDao.findAllDevices()).thenReturn(deviceList);
    List<Device> devices = m_dm.getAllDevices();
    verify(m_deviceDao).findAllDevices();
    assertEquals(deviceList, devices);
}