@Test
public void testUnannounce()
        throws Exception
{

    httpClient.setProcessor((request -> {
        assertEquals(request.getMethod(), "DELETE");
        assertEquals(request.getUri(), URI.create("v1/announcement/" + nodeInfo.getNodeId()));
        assertEquals(request.getHeader("User-Agent"), nodeInfo.getNodeId());
        return mockResponse(NOT_FOUND);
    }));
    client.unannounce().get();
    assertEquals(httpClient.getRequestCount(), 1);
}