public void setAgent(LispRouterAgent agent) {
        synchronized (agent) {
            if (this.agent == null) {
                this.agent = agent;
            } else {
                log.warn("LISP Router Agent has already been set.");
            }
        }
    }
@Test
    public void testSetAgent() throws Exception {
        routerFactory.setAgent(agent);

        assertThat(routerFactory, is(routerFactory));
    }