@Test
    @Order( "2" )
    public void no_coffee_left_error_is_shown_when_there_is_no_coffee_left() {
        given().an_empty_coffee_machine();
        when().I_insert_$_one_euro_coins( 5 )
                .and().I_press_the_coffee_button();
        then().the_message_$_is_shown( "Error: No coffees left" );
    }
Original example due to Cucumber Wiki.
jgiven-examples/src/test/java/com/tngtech/jgiven/examples/coffeemachine/ServeCoffeeTest.java