@Test
public void getLogger() throws Exception {

    Assert.assertNull(RpcLoggerFactory.getLogger(null, "appname1"));
    Logger logger1 = RpcLoggerFactory.getLogger("xxx", "appname1");
    Assert.assertNotNull(logger1);
    Logger logger2 = RpcLoggerFactory.getLogger("xxx", "appname1");
    Assert.assertNotNull(logger1);
    Assert.assertEquals(logger1, logger2);
    Logger logger3 = RpcLoggerFactory.getLogger("xxx", "appname2");
    Assert.assertFalse(logger1.equals(logger3));
}