@Test
public void getTransactionsTest() throws Exception {

  mockMvc.perform(get("/saga/transactions?status=PENDING"))
      .andExpect(status().isOk())
      .andExpect(jsonPath("$", hasSize(2)));
  mockMvc.perform(get("/saga/transactions?status=COMMITTED"))
      .andExpect(status().isOk())
      .andExpect(jsonPath("$", hasSize(4)));
  mockMvc.perform(get("/saga/transactions?status=COMPENSATING"))
      .andExpect(status().isOk())
      .andExpect(jsonPath("$", hasSize(3)));
  mockMvc.perform(get("/saga/transactions?status=ROLLBACKED"))
      .andExpect(status().isOk())
      .andExpect(jsonPath("$", hasSize(5)));
  mockMvc.perform(get("/saga/transactions?status=ALL"))
      .andExpect(status().isOk())
      .andExpect(jsonPath("$", hasSize(1)));
  mockMvc.perform(get("/saga/transactions?status=FAILURECondition"))
      .andExpect(status().isOk())
      .andExpect(jsonPath("$", hasSize(0)));
}