@Test
public void testGetDeviceNull() {

    try {
        m_dm.getDevice("deviceA");
        verify(m_deviceDao).getDeviceByName("deviceA");
        fail("Should have thrown IllegalArgumentException");
    } catch (IllegalArgumentException e) {
        assertEquals("Device deviceA does not exist", e.getMessage());
    }
}