    @Test
    public void testOnlyOneHostLeft() throws Throwable {

        ContainerDescription desc = createDescription();

        for (int i = 0; i < initialHostLinks.size() - 1; i++) {
            String hostLink = expectedLinks.remove(i);
            createContainer(desc, hostLink);
        }
        assertEquals(1, expectedLinks.size());

        filter = new ClusterAntiAffinityHostFilter(host, desc);

        filter(expectedLinks);
    }