@Test
public void testExceptionIsThrownWhenDeviceNotManaged() throws ExecutionException {

    try {
        m_pmaRegistry.executeNC("device2", "");
        fail("Expected an exception here");
    } catch (IllegalArgumentException e) {
        assertEquals("Device not managed : device2", e.getMessage());
    }
}