### Question:
RpcResult { public ErrorCode getErrorCode() { return errorCode; } RpcResult(boolean error);  RpcResult(boolean error, T result);  RpcResult(boolean error, String errorMessage, ErrorCode errorCode);  RpcResult(boolean error, String errorMessage, ErrorCode errorCode, T result); boolean isError(); void setError(boolean error); String getErrorMessage(); void setErrorMessage(String errorMessage); ErrorCode getErrorCode(); void setErrorCode(ErrorCode errorCode); T getResult(); void setResult(T result);  }### Answer:
@Test public void correctDefault_noError() { assertThat(new RpcResult<String>(false).getErrorCode(), is(equalTo(RpcResult.ErrorCode.NO_ERROR))); }
@Test public void correctDefault_error() { assertThat(new RpcResult<String>(true).getErrorCode(), is(equalTo(RpcResult.ErrorCode.INTERNAL_ERROR))); }