@Test
public void testGetBuild() throws Exception {

  long buildId = 79083233;
  server.expect(requestTo("https://api.travis-ci.org/builds/"+buildId))
          .andExpect(method(HttpMethod.GET))
          .andExpect(header(HttpHeaders.ACCEPT, "application/vnd.travis-ci.2+json"))
          .andRespond(withSuccess(output, MediaType.APPLICATION_JSON_UTF8));
  TResult result = client.getBuild(79083233);
  System.out.println(result);
  Calendar calendar = DatatypeConverter.parseDateTime((String)result.getBuild().getStartedAt());
  PrettyTime p = new PrettyTime(Locale.ENGLISH);
  System.out.println(p.format(calendar));
  
  assertThat(result.getBuild().getCommitId(), is(result.getCommit().getId()));
  assertThat(result.getCommit().getId(), is(22542817L));
  assertThat(result.getCommit().getMessage(), is("add depedency of icu4j"));
  assertThat(result.getCommit().getCommitterName(), is("JCooky"));
}