@Test
public void testRandomDataProviderStrategy() {
strategy = RandomDataProviderStrategy.getInstance();
PodamFactory factory = new PodamFactoryImpl(strategy);
PojoWithMapsAndCollections pojo =
factory.manufacturePojo(PojoWithMapsAndCollections.class);
Assert.assertNotNull("POJO manufacturing failed", pojo);
Assert.assertNotNull("Array is null", pojo.getArray());
Assert.assertEquals(
strategy.getNumberOfCollectionElements(Object.class),
pojo.getArray().length);
Assert.assertNotNull("List is null", pojo.getList());
Assert.assertEquals(
strategy.getNumberOfCollectionElements(Object.class),
pojo.getList().size());
Assert.assertNotNull("Map is null", pojo.getMap());
Assert.assertEquals(
strategy.getNumberOfCollectionElements(Object.class),
pojo.getMap().size());
}