private static LunDisk createISCSILunDisk() { LunDisk disk = new LunDisk(); LUNs lun = new LUNs(); lun.setLUNId("lunid"); lun.setLunType(StorageType.ISCSI); StorageServerConnections connection = new StorageServerConnections(); connection.setIqn("a"); connection.setConnection("0.0.0.0"); connection.setPort("1234"); ArrayList<StorageServerConnections> connections = new ArrayList<>(); connections.add(connection); lun.setLunConnections(connections); disk.setLun(lun); return disk; }