void (String ext) { String baseName = getBaseName("tag"); myFixture.configureByFile(baseName + "." + ext); List<InvokeTemplateAction> actions = buildSurroundersForFileTypeWithGivenExtension(); actions.get(0).perform(); myFixture.checkResultByFile(baseName + "_after." + ext); }