@@ -0,0 +1,1394 @@
+package helios.samples.jdk;%0A%0Aimport static helios.Helios.validate;%0A%0Aimport static helios.Validators.min;%0Aimport static helios.Validators.required;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.List;%0Aimport org.junit.Test;%0A%0Aimport helios.ValidatorError;%0A%0Apublic class SimplePropertiesTest %7B%0A%0A    static class Loan %7B%0A        public Long id;%0A        public String name;%0A        public Double amount;%0A%0A        public Loan(Long id, String name, Double amount) %7B%0A            this.id = id;%0A            this.name = name;%0A            this.amount = amount;%0A        %7D%0A    %7D%0A%0A    public static List%3CValidatorError%3E validateLoan(final Loan loanToValidate) %7B%0A        return validate(%22loan%22, loanToValidate,%0A            (Loan loan) -%3E validate(%22id%22, loan.id, required(), min(0)),%0A            (Loan loan) -%3E validate(%22name%22, loan.name, required()),%0A            (Loan loan) -%3E validate(%22amount%22, loan.amount, required()));%0A    %7D%0A%0A    @Test%0A    public void testInvalidLoanId() %7B%0A        Loan loan = new Loan(1L, %22car loan%22, 12000.0);%0A%0A        assertEquals(validateLoan(loan).size(), 1);%0A    %7D%0A%0A    @Test%0A    public void testInvalidName() %7B%0A        Loan loan = new Loan(null, null, 12d);%0A%0A        assertEquals(validateLoan(loan).size(), 2);%0A    %7D%0A%0A    public void testInvalidAmount() %7B%0A        Loan loan = new Loan(null, null, null);%0A%0A        assertEquals(validateLoan(loan).size(), 3);%0A    %7D%0A%7D%0A

Add java example