PebbleViewEngine extends ViewEngineBase { @Override public boolean supports(String view) { return view.endsWith(".peb"); } @Inject  PebbleViewEngine(@ViewEngineConfig PebbleEngine pebbleEngine); @Override boolean supports(String view); @Override void processView(ViewEngineContext context);  }
@Test public void shouldSupportOnlyFilesWithExtensionPeb() { PebbleViewEngine engine = new PebbleViewEngine(null); assertTrue(engine.supports("view.peb")); assertFalse(engine.supports("view.txt")); }