ValidationResultImpl implements ValidationResult { @Override public String getDetail() { return detail; } ValidationResultImpl(boolean valid, String detail); @Override boolean isValid(); @Override String getDetail(); static ValidationResult create(ValidationResult result);  }
@Test public void testGetDetail() throws Exception { ValidationResult result = new ValidationResultImpl(true, "detail"); Assert.assertEquals("detail", result.getDetail()); }