}
@Test
public void testPojoWithNoSettersAndCollectionInConstructor() {
NoSetterWithCollectionInConstructorPojo pojo = factory
.manufacturePojo(NoSetterWithCollectionInConstructorPojo.class);
Assert.assertNotNull("The POJO cannot be null!", pojo);
List<String> strList = pojo.getStrList();
Assert.assertNotNull(
"The collection of Strings in the constructor cannot be null!",
strList);
Assert.assertFalse(
"The collection of Strings in the constructor cannot be empty!",
strList.isEmpty());
String strElement = strList.get(0);
Assert.assertNotNull("The collection element cannot be null!",
strElement);
int intField = pojo.getIntField();
Assert.assertTrue(
"The int field in the constructor must be different from zero",
intField != 0);
}