public static Details create(String template, Object... args) {
    return Details.builder()
        .status(MaestroRuntimeException.Code.INTERNAL_ERROR)
        .message(String.format(template, args))
        .build();
  }
@Test
  public void testCreateCausedByMaestroInternalError() {
    Exception exception = new MaestroInternalError("test");
    Details details = Details.create(exception, true, "test-msg");
    assertEquals(MaestroRuntimeException.Code.INTERNAL_ERROR, details.getStatus());
    assertEquals("test-msg", details.getMessage());
    assertEquals(1, details.getErrors().size());
    assertEquals(Collections.singletonList("MaestroInternalError: test"), details.getErrors());
    assertTrue(details.isRetryable());
  }