@@ -0,0 +1,760 @@
+package uk.co.jemos.podam.test.unit;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport uk.co.jemos.podam.api.PodamFactory;%0Aimport uk.co.jemos.podam.api.PodamFactoryImpl;%0A%0A/**%0A * @author kurtinaitis%0A * %0A */%0Apublic class ConstructionFailureTest %7B%0A%0A%09public static class NonInstantiatableClass %7B%0A%09%09private String name;%0A%0A%09%09public NonInstantiatableClass() throws Exception %7B%0A%09%09%09throw new Exception();%0A%09%09%7D%0A%0A%09%09public void setName(String name) %7B%0A%09%09%09this.name = name;%0A%09%09%7D%0A%0A%09%09public String getName() %7B%0A%09%09%09return name;%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testConstructionFailure()%7B%0A%09%09PodamFactory factory = new PodamFactoryImpl();%0A%09%09NonInstantiatableClass innerClassPojo =%0A%09%09%09%09factory.manufacturePojo(NonInstantiatableClass.class);%0A%09%09Assert.assertNull(innerClassPojo);%0A%09%7D%0A%7D%0A

Test returning null for classes which cannot be instantiated