server.enqueue(addCommonHeaders(
new MockResponse().setResponseCode(404)));
try {
NeutronApi neutronApi = api(server.getUrl("/").toString(), "openstack-neutron", overrides);
RouterApi api = neutronApi.getRouterExtensionApi("RegionOne").get();
Router.UpdateOptions updateOptions = Router.updateOptions()
.externalGatewayInfo(
ExternalGatewayInfo.builder().networkId("8ca37218-28ff-41cb-9b10-039601ea7e6b").build())
.build();
Router router = api.update("12345", updateOptions);
/*
* Check request
*/
assertAuthentication(server);