FrutillaParser { static String popSentence() { if (sRoot != null) { return sRoot.popSentence(); } return ""; }    }
@Frutilla( Given = "some sentences are added", When = "getting complete sentence", Then = { "the sentence is correct", "and is empty after reading sentence" } ) @Test public void testPopSentence() throws Exception { given(GIVEN).and(ONE).but(BUT).when(WHEN).and(TWO).then(THEN).and(THREE); final String sentence = String.format("GIVEN %s\n AND %s\n BUT %s\nWHEN %s\n AND %s\nTHEN %s\n AND %s", GIVEN, ONE, BUT, WHEN, TWO, THEN, THREE); assertEquals(sentence, FrutillaParser.popSentence()); assertTrue(FrutillaParser.isEmpty()); }