1 package test.parameters; 2 3 import org.testng.annotations.Optional; 4 import org.testng.annotations.Parameters; 5 6 public class OptionalParameterTest { 7 8 @Parameters("optional") 9 public OptionalParameterTest(@Optional String optional) {} 10 11 } 12