public ComputeNode getComputeNodeWithBePort(String host, int bePort) {
        return getComputeNodeWithBePortCommon(host, bePort, idToComputeNodeRef);
    }
@Test
    public void testGetComputeNodeWithBePort() throws Exception {
        mockNet();

        ComputeNode be1 = new ComputeNode(10001, "127.0.0.1", 1000);
        be1.setBePort(1001);
        service.addComputeNode(be1);
        ComputeNode beIP1 = service.getComputeNodeWithBePort("127.0.0.1", 1001);

        service.dropAllComputeNode();

        ComputeNode be2 = new ComputeNode(10001, "newHost-1", 1000);
        be2.setBePort(1001);
        service.addComputeNode(be2);
        ComputeNode beFqdn = service.getComputeNodeWithBePort("127.0.0.1", 1001);

        Assert.assertTrue(beFqdn != null && beIP1 != null);

        service.dropAllComputeNode();

        ComputeNode be3 = new ComputeNode(10001, "127.0.0.1", 1000);
        be3.setBePort(1001);
        service.addComputeNode(be3);
        ComputeNode beIP3 = service.getComputeNodeWithBePort("127.0.0.2", 1001);
        Assert.assertTrue(beIP3 == null);
    }