@Test
public void testGetDevice() {

    Device deviceA = createDevice("deviceA");
    when(m_deviceDao.getDeviceByName("deviceA")).thenReturn(deviceA);
    Device device = m_dm.getDevice("deviceA");
    verify(m_deviceDao).getDeviceByName("deviceA");
    assertEquals(deviceA, device);
}