  @Test
  public void generateCodeWithRetryStaleIfRequired_rx_get() throws Exception {

    List<MethodSpec> methodSpecs = singleMethodInfo(Foo5.class).generateCodeWithRetryStaleIfRequired();
    assertEquals("@retrofit.http.GET(\"/hoge\")\n"
            + "@retrofit.http.Headers(\"Cache-Control: max-stale=86400\")\n"
            + "public abstract rx.Observable<java.lang.String> bar$$RetryStale(java.util.List<java.lang.String> arg0, int arg1);",
        methodSpecs.get(1).toString().trim());
  }