PLCApplicationResources { public String getStringResource(String resourceName) { return resourceBundle.getString(resourceName); } @Inject  PLCApplicationResources(ResourceBundle resourceBundle); String getStringResource(String resourceName); int getIntResource(String resourceName);  }
@Test public void getStringResource() { PLCApplicationResources resources = TestApplicationResourcesFactory.getApplicationResources(); assertEquals("bar", resources.getStringResource("foo")); }