@Test
public void testValidSave() {

    doReturn(computation).when(service).saveOrUpdate(anyString(), any(ComputationDomain.class));
    final Response response = resource.saveOrUpdate(tenant, computation);
    Assert.assertEquals(response.getStatus(), 201);
    Assert.assertEquals(response.getEntity(), computation);
}