@Test public void handlesSerializedVersionField() throws Exception {

  JsonCookie expected = JsonCookie.create("session", "session-contents", "localhost", "/admin", true, true);
  String json = Resources.toString(Resources.getResource("fixtures/cookie_with_version.json"), UTF_8);
  JsonCookie actual = Jackson.newObjectMapper().readValue(json, JsonCookie.class);
  assertThat(actual).isEqualTo(expected);
}