@Test
public void testParseFlowOptionsSlaWithEmail() throws Exception {

  final HttpServletRequest req = mockRequestWithSla(ImmutableMap.of(
      "slaSettings[1]", ",FINISH,2:30,true,false",
      "slaEmails", "sla1@example.com,sla2@example.com"));
  final ExecutionOptions options = HttpRequestUtils.parseFlowOptions(req, "test-flow");
  final List<SlaOption> slaOptions = options.getSlaOptions();
  final List<SlaOption> expected = Arrays.asList(new SlaOption(SlaType.FLOW_FINISH, "test-flow",
      "", Duration.ofMinutes(150), ImmutableSet.of(SlaAction.ALERT),
      ImmutableList.of("sla1@example.com", "sla2@example.com")));
  Assert.assertEquals(expected, slaOptions);
}