assertEquals( "get", content.getValue() );
}
@Test
public void testSimplePostWithCustomProvider() {
CustomType customType = new CustomType( "foo" );
driver.addExpectation( onRequestTo( "/test" )
.withMethod( POST )
.withBody( customType.getValue(), TEXT_PLAIN ), giveResponse( "bar", TEXT_PLAIN ) );
CustomType content = resource.postContent( customType );
assertEquals( "bar", content.getValue() );
}