public static ApplyPermissionTemplateQuery create(String templateUuid, List<String> componentKeys) {
    return new ApplyPermissionTemplateQuery(templateUuid, componentKeys);
  }
@Test
  public void should_invalidate_query_with_empty_name() {
    assertThatThrownBy(() -> create("", newArrayList("1", "2", "3")))
      .isInstanceOf(BadRequestException.class)
      .hasMessage("Permission template is mandatory");
  }