@Test
public void doesNotAllowLongIds() {

    IllegalArgumentException thrown = Assertions.assertThrows(IllegalArgumentException.class, () ->
            SdkServiceIdValidator.validateServiceId("Foobarbazqux Foobarbazqux Foobarbazqux Foobarbazqux"));
    assertThat(thrown.getMessage(), containsString("2 and 50"));
}