public class TemplateBasedApplierTest {
@Test
public void shouldThrowUsageExceptionWhenTemplateNotFound() throws Exception {
TemplateBasedApplier applier = new TemplateBasedApplier(new NullWriter(), "some_complete_rubbish", null, ";", DelimiterType.normal, null);
try {
applier.apply(null);
Assert.fail("expected exception");
} catch (UsageException e) {
assertThat(e.getMessage(), is("Could not find template named some_complete_rubbish_apply.ftl\n" +