    @Test
    public void testGenerate() {

        CustomCodeGenerator generator = new CustomCodeGenerator(CustomCodeGenerator.Mode.NUMBER);
        String code = generator.generateCode("xxx");
        Assert.assertEquals(6, code.length());
        String code2 = generator.generateCode("xxx");
        Assert.assertNotEquals(code, code2);
    }