@Test
public void testValidSave() {

    doReturn(globalProperty).when(service).save(any(GlobalPropertyDomain.class));
    final Response response = resource.save(globalProperty);
    Assert.assertEquals(response.getStatus(), 201);
    Assert.assertEquals(response.getEntity(), globalProperty);
}