* Test of createNewUser method, of class RaxaUserController.
*/
@Test
public void testCreateNewProviderUser() throws Exception {
String json = "{\"firstName\":\"Darth\",\"lastName\":\"Vader\",\"gender\":\"M\",\"userName\":\"johnJames\",\"password\":\"Hello123\",\"type\":\"provider\",\"location\":\"dc5c1fcc-0459-4201-bf70-0b90535ba362\"} }";
SimpleObject post = new ObjectMapper().readValue(json, SimpleObject.class);
Object user = controller.createNewUser(post, request, response);
System.out.println(user);
User u = Context.getUserService().getUserByUsername("johnJames");
Provider p = Context.getProviderService().getProviders("Darth Vader", null, null, null).iterator().next();
Assert.assertEquals("Darth Vader", p.getName());