UiVelocityFunctions { public String resourceLink(String provider, String path) { return ui.resourceLink(provider, path); } UiVelocityFunctions(FormEntrySession session, UiUtils ui); String resourceLink(String provider, String path);  }
@Test public void resourceLink() { WebConstants.CONTEXT_PATH = "testing"; Assert.assertThat(functions.resourceLink("kenyaemr", "test.png"), is("/testing/ms/uiframework/resource/kenyaemr/test.png")); }