PmLocalizeApi { public static String findLocalization(PmObject pm, String key, Object... resStringArgs) { return apiHandler.findLocalization((PmObjectBase)pm, key, resStringArgs); }  static String findLocalization(PmObject pm, String key, Object... resStringArgs); static String localize(PmObject pm, String key, Object... resStringArgs); static String localizeEnumValue(PmObject pmCtxt, Enum<?> enumValue); static String localizeBooleanValue(PmAttr<?> pmAttr, Boolean value); static String localizeOneOrMany(PmObject pm, String keybase, int number, Object... resArgs); static void setResourceStringProvider(ResourceStringProvider resourceStringProvider); static String getOutputFormatString(PmAttr<?> pmAttr);  }
@Test public void testFindLocalization() { assertEquals("Find an existing the English resource string.", "A simple text", PmLocalizeApi.findLocalization(pmCtxt, "pmLocalizeApiTest.simpleText")); assertEquals("A query for a non-existing resource string just provides 'null' (does not return a dummy as the localize() method).", null, PmLocalizeApi.findLocalization(pmCtxt, "--non-existing-resource-key--")); }