Assert.assertTrue(rnd != 0);
}
@Test
public void testCreatesUsingSeed() throws Exception {
SecureRandomFactoryBean factory = new SecureRandomFactoryBean();
Resource resource = new ClassPathResource("org/springframework/security/core/token/SecureRandomFactoryBeanTests.class");
Assert.assertNotNull(resource);
factory.setSeed(resource);
Object result = factory.getObject();
Assert.assertTrue(result instanceof SecureRandom);
int rnd = ((SecureRandom)result).nextInt();
Assert.assertTrue(rnd != 0);
}