@Ignore("This is applicable only in transparent mode")
@Test
public void testExceptionIsThrownWhenNoConnectionToDevice() throws ExecutionException {

    when(m_cm.isConnected(m_device1Meta)).thenReturn(false);
    try {
        m_pmaRegistry.executeNC("device1", "");
        fail("Expected an exception here");
    } catch (IllegalStateException e) {
        assertEquals("Device not connected : device1", e.getMessage());
    }
}