@Test
public void testDirectMessagesRequestUrl() {
Api api = Api.builder().username("test").password("test").build();
DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeZone.UTC);
Request request = api.directMessages().page(1).sinceId(12345).since(epoch).build();
assertEquals("http://twitter.com:80/direct_messages.json", request.toString());
assertHasParameter(request.toUrl(), "page", "1");
assertHasParameter(request.toUrl(), "since_id", "12345");
assertHasParameter(request.toUrl(), "since",
"Thu Jan 01 00:00:00 +0000 1970");
}