package Ġcom . github . kit tin un f . fuel . core . requests Ċ Ċ import Ġcom . github . kit tin un f . fuel . core . Headers Ċ import Ġcom . github . kit tin un f . fuel . core . Method Ċ import Ġorg . hamcrest . Matcher Assert . assertThat Ċ import Ġorg . hamcrest . core . String Contains . contains String Ċ import Ġorg . junit . Test Ċ import Ġjava . net . URL Ċ Ċ class ĠDefault Request Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġrequest ToString Includes Method () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrequest Ġ= ĠDefault Request ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMethod . POST , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġurl Ġ= ĠURL (" http :// http bin . org / post "), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġheaders Ġ= ĠHeaders . from (" Content - Type " Ġto Ġ" text / html "), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġparameters Ġ= ĠlistOf (" foo " Ġto Ġ" xxx ") ĊĠĠĠĠĠĠĠ Ġ). body (" it 's Ġa Ġbody ") ĊĊĠĠĠĠĠĠĠ Ġval Ġprinted Ġ= Ġrequest . toString () ĊĠĠĠĠĠĠĠ ĠassertThat ( print ed , Ġcontains String (" --> ")) ĊĠĠĠĠĠĠĠ ĠassertThat ( print ed , Ġcontains String (" POST ")) ĊĠĠĠĠĠĠĠ ĠassertThat ( print ed , Ġcontains String (" http :// http bin . org / post ")) ĊĠĠĠĠĠĠĠ ĠassertThat ( print ed , Ġcontains String (" it 's Ġa Ġbody ")) ĊĠĠĠĠĠĠĠ ĠassertThat ( print ed , Ġcontains String (" Content - Type ")) ĊĠĠĠĠĠĠĠ ĠassertThat ( print ed , Ġcontains String (" text / html ")) ĊĠĠĠ Ġ} Ċ } Ċ