### Question:
LoadBalancerSuspensionValidator implements ResourceValidator<Suspension> { @Override public ValidatorResult validate(Suspension backup, Object httpRequestType) { ValidatorResult result = validator.validate(backup, httpRequestType); return ValidatorUtilities.removeEmptyMessages(result); } LoadBalancerSuspensionValidator(); @Override ValidatorResult validate(Suspension backup, Object httpRequestType); @Override Validator<Suspension> getValidator();  }### Answer:
@Test public void shouldAcceptValidLbS() { ValidatorResult result = lbsvalidator.validate(suspension, HttpRequestType.POST); assertTrue(result.passedValidation()); }
@Test public void shouldRejectUser() { suspension.setUser("bob"); ValidatorResult result = lbsvalidator.validate(suspension, HttpRequestType.POST); assertTrue(result.passedValidation()); }
@Test public void shouldRejectNullReason() { suspension.setReason(null); ValidatorResult result = lbsvalidator.validate(suspension, POST); assertFalse(resultMessage(result, POST), result.passedValidation()); }
@Test public void shouldRejectNullTicket() { suspension.setTicket(null); ValidatorResult result = lbsvalidator.validate(suspension, POST); assertFalse(resultMessage(result, POST), result.passedValidation()); }
@Test public void shouldRejectWhenTicketIsEmpty() { suspension.getTicket().setTicketId(""); suspension.getTicket().setComment(""); ValidatorResult result = lbsvalidator.validate(suspension, POST); assertFalse(resultMessage(result, POST), result.passedValidation()); }