T function ( T arg0 ) { return arg0 ; }
returns the given assertion . this method improves code readability by surrounding the given assertion with `` assertthat '' . for example , let 's assume we have the following custom assertion class : public class serversocketassertion implements assertextension private final serversocket socket ; public serversocketassertion serversocket socket this.socket = socket ; public serversocketassert isconnectedto int port assertthat socket.isbound . istrue ; assertthat socket.getlocalport . isequalto port ; assertthat socket.isclosed . isfalse ; return this ; we can wrap that assertion with `` assertthat '' to improve test code readability . serversocketassertion socket = new serversocketassertion server.getsocket ; assertthat socket . isconnectedto 2000 ; concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder