String deployADir = "/scopedA.ear/scopedA.jar";
File libDir = new File(jbosstestDeployDir, deployADir);
System.out.println("libDir = " + libDir.getAbsolutePath());
// Create a SimpleResponseDTO class with a static serialVersionUID of 1L
//ClassPool defaultPool = ClassPool.getDefault();
ClassPool classes1Pool = ClassPool.getDefault();
//ClassPool classes1Pool = new ClassPool(defaultPool);
CtClass info = classes1Pool.makeClass("org.jboss.test.scoped.interfaces.dto.SimpleResponseDTO");
info.addInterface(classes1Pool.get("java.io.Serializable"));
CtClass s = classes1Pool.get("java.lang.String");
CtField firstName = new CtField(s, "firstName", info);
firstName.setModifiers(Modifier.PRIVATE);
info.addField(firstName);
CtMethod getFirstName = CtNewMethod.getter("getFirstName", firstName);
getFirstName.setModifiers(Modifier.PUBLIC);
info.addMethod(getFirstName);
CtMethod setFirstName = CtNewMethod.setter("setFirstName", firstName);
setFirstName.setModifiers(Modifier.PUBLIC);
info.addMethod(setFirstName);
CtClass s2 = classes1Pool.get("java.lang.String");
CtField lastName = new CtField(s2, "lastName", info);
lastName.setModifiers(Modifier.PRIVATE);
info.addField(lastName);
CtMethod getLastName = CtNewMethod.getter("getLastName", lastName);
getLastName.setModifiers(Modifier.PUBLIC);