### Question:
OrderController extends RestActionSupport implements ModelDriven<Object> { public HttpHeaders index() { list = ordersService.getAll(); return new DefaultHttpHeaders("index") .disableCaching(); }  HttpHeaders show(); HttpHeaders index(); String destroy(); HttpHeaders create(); String update(); void setId(String id); Object getModel();  }### Answer:
@Test public void testIndex() throws Exception { ActionProxy proxy = getActionProxy("GET", "/data/order.json"); proxy.execute(); OrderController orderController = (OrderController) proxy.getAction(); Object model = orderController.getModel(); assertThat(model, notNullValue()); assertThat(model, is(instanceOf(List.class))); List<Order> orders = (List<Order>) model; assertThat("List contains 3 orders", orders.size(), is(greaterThanOrEqualTo(3))); }