SpringSecurityHibernateConfig { public Document getDocument() { return document; } SpringSecurityHibernateConfig( File xmlFile );  SpringSecurityHibernateConfig( String xml );  SpringSecurityHibernateConfig( Document doc );  SpringSecurityHibernateConfig(); PasswordEncoder getPasswordEncoder(); Document getDocument();  }
@Test public void testGetDocument() throws Exception { config = new SpringSecurityHibernateConfig( document ); assertEquals( document, config.getDocument() ); }
@Test public void testConstructor_xmlString() throws Exception { config = new SpringSecurityHibernateConfig( "<beans>no beans</beans>" ); assertNotNull( config ); assertNotNull( config.getDocument() ); }