Generator { protected File getDestFile(String name) { return new File(destdir, name); } Generator(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales);  Generator(ObjectWriter writer, SkillModelRenderer renderer, SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales); void generate();  }
@Test public void testGetDestFile() { File dir = new File("."); Generator generator = new Generator(mockApplication, dir, Collections.singletonList(en_US)); assertEquals(new File(dir, "test.json"), generator.getDestFile("test.json")); }