### Question:
Token { public String asTextile() { if ("TEXTILE".equals(t) || t.endsWith("*")) { return v; } else { return ""; } } Token(final String type, final String value, final Position pos);  Token(final String type, final char value, final Position pos); boolean equals(final Token other); @Override String toString(); String asTextile(); String asVerbatim(); boolean isEmptyAsTextile(); boolean isBlankLine(); static final String BLANK_LINE; public String t; public String v; public List<Token> p; public Position pos; }### Answer:
@Test void testAsTextile() { assertEquals( Arrays.asList( "test1", "test2", "", "test4", "", "", "test7", "" ), takenFor( t -> t.asTextile(), Arrays.asList( new Token("CONTROL*", "test1", new Position(0,0)), new Token("GROUP2_BEGIN*", "test2", new Position(0,0)), new Token("CONTROL", "test3", new Position(0,0)), new Token("TEXTILE", "test4", new Position(0,0)), new Token("GROUP2_END", "test5", new Position(0,0)), new Token("GROUP1_BEGIN", "test6", new Position(0,0)), new Token("TEXTILE", "test7", new Position(0,0)), new Token("GROUP1_END", "test8", new Position(0,0)) ) ) ); }