@@ -0,0 +1,1979 @@
+package com.github.mkolisnyk.cucumber.runner.runtime;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport com.github.mkolisnyk.cucumber.runner.ExtendedCucumberOptions;%0A%0A@ExtendedCucumberOptions(toPDF = true)%0A@ExtendedCucumberOptions(toPDF = true, formats = %7B%22jpg%22, %22png%22%7D)%0A@ExtendedCucumberOptions(toPDF = true, formats = %7B%22png%22, %22pdf%22, %22jpg%22%7D)%0A@ExtendedCucumberOptions(toPDF = false, formats = %7B%22png%22, %22pdf%22, %22jpg%22%7D)%0A@ExtendedCucumberOptions(toPDF = false)%0Apublic class ExtendedRuntimeOptionFormatsInitializationTest %7B%0A    public ExtendedCucumberOptions%5B%5D options = ExtendedRuntimeOptionFormatsInitializationTest%0A            .class.getAnnotationsByType(ExtendedCucumberOptions.class);%0A    %0A    @Test%0A    public void testPDFIncludedToEmptyFormats() throws Exception %7B%0A        ExtendedRuntimeOptions runtime = new ExtendedRuntimeOptions(options%5B0%5D);%0A        Assert.assertArrayEquals(new String%5B%5D %7B%22pdf%22%7D, runtime.getFormats());%0A    %7D%0A    @Test%0A    public void testPDFIncludedNonEmptyFormats() throws Exception %7B%0A        ExtendedRuntimeOptions runtime = new ExtendedRuntimeOptions(options%5B1%5D);%0A        Assert.assertArrayEquals(new String%5B%5D %7B%22jpg%22, %22png%22, %22pdf%22%7D, runtime.getFormats());%0A    %7D%0A    @Test%0A    public void testPDFIncludedAndPresentInFormats() throws Exception %7B%0A        ExtendedRuntimeOptions runtime = new ExtendedRuntimeOptions(options%5B2%5D);%0A        Assert.assertArrayEquals(new String%5B%5D %7B%22png%22, %22pdf%22, %22jpg%22%7D, runtime.getFormats());%0A    %7D%0A    @Test%0A    public void testPDFExcludedAndPresentInFormats() throws Exception %7B%0A        ExtendedRuntimeOptions runtime = new ExtendedRuntimeOptions(options%5B3%5D);%0A        Assert.assertArrayEquals(new String%5B%5D %7B%22png%22, %22jpg%22%7D, runtime.getFormats());%0A    %7D%0A    @Test%0A    public void testPDFExcludedToEmptyFormats() throws Exception %7B%0A        ExtendedRuntimeOptions runtime = new ExtendedRuntimeOptions(options%5B4%5D);%0A        Assert.assertArrayEquals(new String%5B%5D %7B%7D, runtime.getFormats());%0A    %7D%0A%7D%0A

test verifying toPDF flag handling was added