@Test
void testThrowExceptionIdIfClassificationIsCreatedWithAnExplicitId() {

  when(internalTaskanaEngineMock.getEngine()).thenReturn(taskanaEngineMock);
  ThrowingCallable call =
      () -> {
        Classification classification = createDummyClassification();
        when(internalTaskanaEngineMock.domainExists(any())).thenReturn(true);
        cutSpy.createClassification(classification);
      };
  assertThatThrownBy(call)
      .isInstanceOf(InvalidArgumentException.class)
      .hasMessage("ClassificationId should be null on creation");
}