@Test
    public void WhenRemovingReference_ExpectRemoved()
            throws UnknownHostException {
        localhost_.setHostPath("0000");
        int level = localhost_.getHostPath().length();
        RoutingTable table = new RoutingTable();
        table.setLocalhost(localhost_);

        Host host = new PGridHost("127.0.0.1", 3000);
        for (int i = 0; i < level - 1; i++) {
            table.addReference(i, host);
        }
        Assert.assertTrue(table.levelNumber() == level);
        Assert.assertTrue(table.uniqueHostsNumber() == 1);

        table.removeReference(host);
        Assert.assertTrue(table.levelNumber() == level);
        Assert.assertFalse(table.contains(host));
        Assert.assertTrue(table.uniqueHostsNumber() == 0);
    }