@Test
public void testGetBug() throws Exception {

  final Bug bug = this.createExampleBug(BUG_ID, BUG_DESCR);
  this.bugRepository.customSave(bug, true);
  mockMvc
      .perform(get("/bugs/" + bug.getBugId()))
      .andExpect(status().isOk())
      .andExpect(content().contentType(contentType))
      .andExpect(jsonPath("$.bugId", is(BUG_ID)))
      .andExpect(jsonPath("$.reference[0]", is(BUG_URL1)))
      .andExpect(jsonPath("$.reference[1]", is(BUG_URL2)))
      .andExpect(jsonPath("$.description", is(BUG_DESCR)));
  // Repo must contain 1
  assertEquals(1, this.bugRepository.count());
}