### Question:
Helpers { public static OrderCycle getOrderCycle(String orderFrequency) { OrderCycle orderCycle; if (orderFrequency == null || orderFrequency.isEmpty()) { orderCycle = OrderCycle.Monthly; } else { orderCycle = OrderCycle.valueOf(orderFrequency); } return orderCycle; }  static boolean isEmpty(Collection collection); static OrderCycle getOrderCycle(String orderFrequency); static Date lastDayOfMonth(Date date); static Date firstDayOfMonth(Date date);  }### Answer:
@Test public void shouldGetCorrectOrderCycle() throws Exception { assertThat(Helpers.getOrderCycle("Daily"), is(OrderCycle.Daily)); assertThat(Helpers.getOrderCycle("Monthly"), is(OrderCycle.Monthly)); assertThat(Helpers.getOrderCycle("BiMonthly"), is(OrderCycle.BiMonthly)); assertThat(Helpers.getOrderCycle("SixMonthly"), is(OrderCycle.SixMonthly)); }