CreateDetectorMappingRequest { public void validate() { RequestValidator.validateExpression(this.getExpression()); RequestValidator.validateUser(this.getUser()); RequestValidator.validateMappingDetector(this.getConsumerDetectorMapping()); }  void validate(); Set<String> getFields();  }
@Test(expected = IllegalArgumentException.class) public void testValidate_nullUser() { val requestUnderTest = new CreateDetectorMappingRequest(expression, consumerDetectorMapping, null); requestUnderTest.validate(); }
@Test(expected = IllegalArgumentException.class) public void testValidate_nullDetector() { val requestUnderTest = new CreateDetectorMappingRequest(expression, null, user); requestUnderTest.validate(); }
@Test(expected = IllegalArgumentException.class) public void testValidate_nullExpression() { val requestUnderTest = new CreateDetectorMappingRequest(null, consumerDetectorMapping, user); requestUnderTest.validate(); }