@Test
public void testExceptionIsThrownWhenInvalidReqIsSent(){

    try{
        m_pmaSession.executeNC("<rpc xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\" > <blah xmlns=\"\" /> </rpc>");
        fail("Expected an exception here");
    }catch (IllegalArgumentException e){
        assertEquals("Invalid netconf request received : <rpc xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\" > <blah xmlns=\"\" /> </rpc>", e.getMessage());
    }
}