@Test
public void shouldDeserializeExecutionNoOptionalFields() throws Exception {

  String json = "{"
                + "\"statuses\":["
                + statusJson("16:56", "HALTED", Optional.empty())
                + "]}";
  Execution execution = OBJECT_MAPPER.readValue(json, Execution.class);
  Execution expected = Execution.create(
      Optional.empty(),
      Optional.empty(),
      Optional.empty(),
      Optional.empty(),
      List.of(
          ExecStatus.create(Instant.parse("2016-08-03T16:56:03.607Z"), "HALTED", Optional.empty())
      )
  );
  assertThat(execution, is(expected));
}