@Test
public void deleteStateTest() {

    Response response = target().path("states/" + encode(stateId.stringValue()))
            .request().delete();
    assertEquals(response.getStatus(), 200);
    verify(stateManager).deleteState(eq(stateId));
}