CreateMetricProfilingRequest { public void validate() { RequestValidator.validateExpression(this.getExpression()); RequestValidator.validateBoolean(this.isStationary); }  void validate(); Set<String> getFields();  }
@Test(expected = IllegalArgumentException.class) public void testNull_isStationary_request() { CreateMetricProfilingRequest createMetricProfilingRequest = new CreateMetricProfilingRequest(); createMetricProfilingRequest.setExpression(expression); createMetricProfilingRequest.validate(); }
@Test(expected = IllegalArgumentException.class) public void testNull_expression_request() { CreateMetricProfilingRequest createMetricProfilingRequest = new CreateMetricProfilingRequest(); createMetricProfilingRequest.setIsStationary(true); createMetricProfilingRequest.validate(); }