@Test
public void shouldParseFlyteExecutions() throws IOException {

  String json = "{"
                + "\"execution_id\":\"123\","
                + "\"flyte_exec_conf\":{"
                + "\"reference_id\":{"
                + "\"resource_type\":\"lp\","
                + "\"project\":\"flytetest\","
                + "\"domain\":\"production\","
                + "\"name\":\"GoldenPathWF\","
                + "\"version\":\"1\""
                + "},"
                + "\"input_fields\":{}"
                + "},"
                + "\"runner_id\":\"1\","
                + "\"statuses\":[{\"timestamp\":\"2020-08-20T00:00:00.0Z\",\"status\":\"0\",\"message\":\"ok\"}]}";
  var expectedExecution = Execution.create(
      Optional.of("123"),
      Optional.empty(),
      Optional.empty(),
      Optional.of(FLYTE_EXEC_CONF),
      Optional.of("1"),
      STATUS_LIST
  );
  var actualExecution = Json.deserialize(ByteString.encodeUtf8(json), Execution.class);
  assertEquals(expectedExecution, actualExecution);
}