ValidationResult { public static IValidationResult ok() { return OK; } private  ValidationResult(); static IValidationResult create(); static IValidationResult ok(); static IValidationResult create(final IValidationMessage message); static IValidationResult info(final String text); static IValidationResult warning(final String text); static IValidationResult infoError(final String text); static IValidationResult error(final String text); static IValidationResult info(final String context, final String text); static IValidationResult warning(final String context, final String text); static IValidationResult infoError(final String context, final String text); static IValidationResult error(final String context, final String text); static IValidationResultBuilder builder();  }
@Test public void testOkResult() { final IValidationResult ok = ValidationResult.ok(); Assert.assertEquals(ok.getWorstFirst().getType(), MessageType.OK); }