### Question:
ScouterConstants { public static String toScouterObjType(String name, ScouterConfig conf) { if (StringUtil.isNotEmpty(name)) { Map<String, String> serviceToType = conf.getServiceToObjTypeMap(); return OBJ_TYPE_PREFIX + serviceToType.getOrDefault(name, name); } else { return "zipkin"; } }  static String toScouterObjName(String name); static String toScouterObjType(String name, ScouterConfig conf); static final String OBJ_PREFIX; static final String OBJ_TYPE_PREFIX; static final String UNKNOWN; }### Answer:
@Test public void toScouterObjType() { ScouterConfig config = new ScouterConfig(false, "localhost", 6100, 60000, new HashMap<>(), "s1:xxs1,s2:xxs2"); assertEquals("z$nomap", ScouterConstants.toScouterObjType("nomap", config)); assertEquals("z$xxs1", ScouterConstants.toScouterObjType("s1", config)); assertEquals("z$xxs2", ScouterConstants.toScouterObjType("s2", config)); }