s_logger.warn("create srv-id-assign exception " + ex.getMessage());
fail(ex.getMessage());
}
assertNotNull(net2.getUuid());
ApiObjectBase net3 = null;
try {
net3 = _api.findById(VirtualNetwork.class, net2.getUuid());
assertNotNull(net3);
} catch (IOException ex) {
fail(ex.getMessage());
}
assertEquals(net2.getUuid(), net3.getUuid());
try {
String uuid_1 = _api.findByName(VirtualNetwork.class, null, "test-network");
assertNotNull(uuid_1);
assertEquals(net1.getUuid(), uuid_1);