class Generator {

    protected File getDestFile(String name) {
        return new File(destdir, name);
    }

}

class GeneratorTest {

    @Mock
    private SkillModelSupplier mockApplication;
    @Mock
    private File mockDir;
    @Mock
    private File mockFile;
    @Mock
    private ObjectWriter mockWriter;
    private SkillModel mockSkill;
    @Mock
    private SkillModelRenderer mockRenderer;
    private InteractionModelEnvelope mockModel;
    private Generator underTest;

    @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"));
    }

}