@Test
public void checkMessageV2() {

    final ThingId thingId = ThingId.of("foo", "bar");
    final DittoRuntimeException createdException = ThingNotDeletableException.newBuilder(thingId)
            .dittoHeaders(DittoHeaders.newBuilder().schemaVersion(JsonSchemaVersion.V_2).build())
            .build();
    final String expectedMessage = "The Thing with ID '"+thingId.toString()+"' could not be deleted as the " +
            "requester had insufficient permissions ( WRITE on root resource is required).";
    assertThat(createdException.getMessage()).isEqualTo(expectedMessage);
}