public class ODataEntityProviderPropertiesTest extends BaseTest {
@Test
public void buildFeedProperties() throws Exception {
URI serviceRoot = new URI("http://localhost:80/");
EntityProviderWriteProperties properties = EntityProviderWriteProperties.serviceRoot(serviceRoot)
.inlineCountType(InlineCount.ALLPAGES)
.inlineCount(1)
.nextLink("http://localhost")
.build();
assertEquals("Wrong base uri.", "http://localhost:80/", properties.getServiceRoot().toASCIIString());
assertEquals("Wrong inline count type.", InlineCount.ALLPAGES, properties.getInlineCountType());
assertEquals("Wrong inline count.", Integer.valueOf(1), properties.getInlineCount());
assertEquals("Wrong nextLink", "http://localhost", properties.getNextLink());
}