### Question:
SofaRpcUtils { public static String getApplicationName(SofaRequest request) { String appName = (String) request.getRequestProp(RemotingConstants.HEAD_APP_NAME); return appName == null ? "" : appName; } private  SofaRpcUtils(); static String getApplicationName(SofaRequest request); static String getInterfaceResourceName(SofaRequest request); static String getMethodResourceName(SofaRequest request); static Object[] getMethodArguments(SofaRequest request);  }### Answer:
@Test public void testGetApplicationName() { SofaRequest request = new SofaRequest(); String applicationName = SofaRpcUtils.getApplicationName(request); assertEquals("", applicationName); request.addRequestProp("app", "test-app"); applicationName = SofaRpcUtils.getApplicationName(request); assertEquals("test-app", applicationName); }