@Test
    @Order( "3" )
    public void not_enough_money_message_is_shown_when_insufficient_money_was_given() throws Exception {

        given().a_coffee_machine()
                .and().there_are_$_coffees_left_in_the_machine( 2 );
        when().I_insert_$_one_euro_coins( 1 )
                .and().I_press_the_coffee_button();
        then().the_message_$_is_shown( "Error: Insufficient money" );
    }
Original example due to Cucumber Wiki.
jgiven-examples/src/test/java/com/tngtech/jgiven/examples/coffeemachine/ServeCoffeeTest.java