@@ -0,0 +1,801 @@
+package jenkins.bugs;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.jvnet.hudson.test.JenkinsRule;%0A%0Aimport hudson.security.HudsonPrivateSecurityRealm;%0Aimport jenkins.model.Jenkins;%0A%0Apublic class Jenkins41511Test %7B%0A%0A    @BeforeClass%0A    public static void setUpClass() %7B%0A        System.setProperty(Jenkins.class.getName()+%22.slaveAgentPort%22, %2210000%22);%0A        System.setProperty(Jenkins.class.getName()+%22.slaveAgentPortEnforce%22, %22true%22);%0A    %7D%0A%0A    @Rule%0A    public JenkinsRule j = new JenkinsRule();%0A%0A    @Test%0A    public void configRoundTrip() throws Exception %7B%0A        Jenkins.getInstance().setSecurityRealm(new HudsonPrivateSecurityRealm(true, false, null));%0A        j.submit(j.createWebClient().goTo(%22configureSecurity%22).getFormByName(%22config%22));%0A    %7D%0A%7D%0A

Add a test showing the problem