@Test(expected = DuplicatePatternException.class)
public void testDuplicateDefinitionsThrowError() {

    final List<Class<?>> stepImplsList = new ArrayList<Class<?>>();
    stepImplsList.add(TestStepImplementations.class);
    final List<Class<?>> stepImpls = new ArrayList<Class<?>>();
    stepImpls.add(MockStepImplementations.class);
    SyntaxBuilder.buildSyntax(stepImpls, new File("./target/test-classes/substeps/duplicates.substeps"));
}