UserTO userTO = new UserTO();
userTO.setUsername("issue172@syncope.apache.org");
userTO.setPassword("password");
AttributeTO attributeTO = new AttributeTO();
attributeTO.setSchema("firstname");
attributeTO.addValue("issue172");
userTO.addAttribute(attributeTO);
attributeTO = new AttributeTO();
attributeTO.setSchema("surname");
attributeTO.addValue("issue172");
userTO.addAttribute(attributeTO);
attributeTO = new AttributeTO();
attributeTO.setSchema("userId");
attributeTO.addValue("issue172@syncope.apache.org");
userTO.addAttribute(attributeTO);
attributeTO = new AttributeTO();
attributeTO.setSchema("fullname");
attributeTO.addValue("issue172");
userTO.addAttribute(attributeTO);
restTemplate.postForObject(BASE_URL + "user/create", userTO, UserTO.class);
policyTO = restTemplate.postForObject(BASE_URL + "policy/password/create", policyTO, PasswordPolicyTO.class);