@SuppressWarnings("unchecked")
    public static Class<? extends UuidGenerator> parseUuidGenerator(String cucumberUuidGenerator) {
        Class<?> uuidGeneratorClass;
        try {
            uuidGeneratorClass = Class.forName(cucumberUuidGenerator);
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(
                String.format("Could not load UUID generator class for '%s'", cucumberUuidGenerator), e);
        }
        if (!UuidGenerator.class.isAssignableFrom(uuidGeneratorClass)) {
            throw new IllegalArgumentException(String.format("UUID generator class '%s' was not a subclass of '%s'",
                uuidGeneratorClass, UuidGenerator.class));
        }
        return (Class<? extends UuidGenerator>) uuidGeneratorClass;
    }
@Test
    void parseUuidGenerator_IncrementingUuidGenerator() {
        // When
        Class<? extends UuidGenerator> uuidGeneratorClass = UuidGeneratorParser
                .parseUuidGenerator(IncrementingUuidGenerator.class.getName());

        // Then
        assertEquals(IncrementingUuidGenerator.class, uuidGeneratorClass);
    }