@Test
    public void WhenUpdatingWithNullHostAndRefmaxEqualToLevelSize_ExpectNoChange() throws UnknownHostException {
        RoutingTable routingTable = new RoutingTable();
        localhost_.setHostPath("0");
        routingTable.setLocalhost(localhost_);
        PGridHost aHost = new PGridHost("127.0.0.1", 3333);
        PGridHost anotherHost = new PGridHost("127.0.0.1", 4444);
        routingTable.addReference(0, aHost);
        routingTable.addReference(0, anotherHost);
        int previousLevelSize = routingTable.getLevel(0).size();

        routingTable.updateLevelRandomly(0, null, 2);

        Assert.assertTrue(routingTable.levelNumber() == 1);
        Assert.assertTrue(routingTable.getLevel(0).size() == previousLevelSize);
        Assert.assertTrue(routingTable.getLevel(0).contains(aHost) && routingTable.getLevel(0).contains(anotherHost));
    }