@Test
    @FeatureCaseDiffs
    @DataProvider( { "true", "false" } )
    public void turned_off_machines_should_not_serve_coffee( boolean onOrOff ) {
        given().a_coffee_machine()
                .and().there_are_$_coffees_left_in_the_machine( 2 )
                .and().the_machine_is_$onOrOff( onOrOff );

        when().I_insert_$_one_euro_coins( 2 ).and().I_press_the_coffee_button();

        if( onOrOff ) {
            then().I_should_be_served_a_coffee();
        } else {
            then().I_should_not_be_served_a_coffee().and().no_error_is_shown();
        }

    }
Original example due to Cucumber Wiki.
jgiven-examples/src/test/java/com/tngtech/jgiven/examples/coffeemachine/ServeCoffeeTest.java