assertNotNull(storagePool.getUUID());
}
protected void createUsers() {
Iterable<Role> roles = administrationService.listRoles();
Role userRole = find(roles, role("USER"));
Role enterpriseAdminRole = find(roles, role("ENTERPRISE_ADMIN"));
user = User.builder(context.getApiContext(), enterprise, userRole).name(randomName(), randomName())
.nick("jclouds").authType("ABIQUO").description(randomName()).email(randomName() + "@abiquo.com")
.locale("en_US").password("user").build();
user.save();
assertNotNull(user.getId());
assertEquals(userRole.getId(), user.getRole().getId());
enterpriseAdmin = User.builder(context.getApiContext(), enterprise, enterpriseAdminRole)
.name(randomName(), randomName()).nick("jclouds-admin").authType("ABIQUO").description(randomName())
.email(randomName() + "@abiquo.com").locale("en_US").password("admin").build();
enterpriseAdmin.save();
assertNotNull(enterpriseAdmin.getId());
assertEquals(enterpriseAdminRole.getId(), enterpriseAdmin.getRole().getId());
}