@Test
public void testBackup() throws Exception {

    new Expectations() {
        {
            snapshotBackup.execute();
        }
    };
    Response response = resource.backup();
    assertEquals(200, response.getStatus());
    assertEquals("[\"ok\"]", response.getEntity());
    assertEquals(
            MediaType.APPLICATION_JSON_TYPE, response.getMetadata().get("Content-Type").get(0));
}