Source:
<code>public void validateConnectionParams_Invalid() { HashMap<String, Object> connectParams = new HashMap<String, Object>(); try { RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_MISSING_PEER); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, ""); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_MISSING_PEER); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, "restcomm"); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { <START> assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.SUCCESS); <END> } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, "restcomm"); connectParams.put(RCConnection.ParameterKeys.CONNECTION_VIDEO_ENABLED, true); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_VIDEO_CALL_VIEWS_MANDATORY); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, "restcomm"); connectParams.put(RCConnection.ParameterKeys.CONNECTION_VIDEO_ENABLED, true); connectParams.put(RCConnection.ParameterKeys.CONNECTION_LOCAL_VIDEO, new PercentFrameLayout(context)); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_VIDEO_CALL_VIEWS_MANDATORY); } }</code><technical_language>this supposed invalid scenario? assert for SUCCESS</technical_language>

Target:
public void validateConnectionParams_Invalid() { HashMap<String, Object> connectParams = new HashMap<String, Object>(); try { RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_MISSING_PEER); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, ""); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_MISSING_PEER); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, "restcomm"); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { fail(ex.toString()); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, "restcomm"); connectParams.put(RCConnection.ParameterKeys.CONNECTION_VIDEO_ENABLED, true); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_VIDEO_CALL_VIEWS_MANDATORY); } connectParams = new HashMap<String, Object>(); try { connectParams.put(RCConnection.ParameterKeys.CONNECTION_PEER, "restcomm"); connectParams.put(RCConnection.ParameterKeys.CONNECTION_VIDEO_ENABLED, true); connectParams.put(RCConnection.ParameterKeys.CONNECTION_LOCAL_VIDEO, new PercentFrameLayout(context)); RCUtils.validateConnectionParms(connectParams); } catch (RCException ex) { assertThat(ex.errorCode).isEqualTo(RCClient.ErrorCodes.ERROR_CONNECTION_VIDEO_CALL_VIEWS_MANDATORY); } }