public void testUpdateDeliveryDeviceRequestUrl() {
Api api = Api.builder().username("test").password("test").build();
Request requestNone = api.updateDeliveryDevice(Device.NONE).build();
assertEquals("http://twitter.com:80/account/update_delivery_device.json",
requestNone.toString());
assertHasParameter(requestNone.toUrl(), "device", "none");
Request requestIm = api.updateDeliveryDevice(Device.IM).build();
assertEquals("http://twitter.com:80/account/update_delivery_device.json",
requestIm.toString());
assertHasParameter(requestIm.toUrl(), "device", "im");
Request requestSms = api.updateDeliveryDevice(Device.SMS).build();