@Test
public void validateDeviceParams_Invalid() {

    HashMap<String, Object> settingParams = new HashMap<String, Object>();
    try {
        settingParams = getFilledHashMapWithValidPush(settingParams);
        getFilledWithMediaParams(settingParams);
        RCUtils.validateDeviceParms(settingParams);
    } catch (RCException ex) {
        assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_DEVICE_MISSING_CALL_INTENT);
    }
    try {
        settingParams = getFilledHashMapWithValidPush(settingParams);
        getFilledWithMediaParams(settingParams);
        settingParams.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, "intent");
        RCUtils.validateDeviceParms(settingParams);
    } catch (RCException ex) {
        assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_DEVICE_MISSING_CALL_INTENT);
    }
}