@@ -0,0 +1,799 @@
+package org.jooby.issues;%0A%0Aimport java.util.Optional;%0A%0Aimport org.jooby.Parser;%0Aimport org.jooby.test.ServerFeature;%0Aimport org.junit.Test;%0A%0Apublic class Issue483 extends ServerFeature %7B%0A%0A  public static class NullableBean %7B%0A%0A    String foo;%0A%0A    Optional%3CString%3E bar;%0A%0A    @Override%0A    public String toString() %7B%0A      return foo + bar;%0A    %7D%0A  %7D%0A%0A  %7B%0A    parser(Parser.bean(true));%0A%0A    get(%22/483%22, req -%3E %7B%0A      return req.params(NullableBean.class).toString();%0A    %7D);%0A%0A  %7D%0A%0A  @Test%0A  public void documentNullBeanInjection() throws Exception %7B%0A    request()%0A        .get(%22/483?foo=foo%22)%0A        .expect(%22foonull%22);%0A%0A    request()%0A        .get(%22/483?foo=foo&bar%22)%0A        .expect(%22fooOptional%5B%5D%22);%0A%0A    request()%0A        .get(%22/483?foo=foo&bar=bar%22)%0A        .expect(%22fooOptional%5Bbar%5D%22);%0A  %7D%0A%0A%7D%0A

document bean handling of empty/missing params