@Test
void fromClientMessage() {

    assertThatThrownBy(() -> handler.fromClientMessage("message"))
            .isInstanceOf(BadRequestException.class)
            .satisfies(e -> assertThat(((BadRequestException) e).errorCode()).isEqualTo("INVALID_WS_MESSAGE"));
    assertThatThrownBy(() -> handler.fromClientMessage("{}"))
            .isInstanceOf(BadRequestException.class)
            .satisfies(e -> assertThat(((BadRequestException) e).errorCode()).isEqualTo("VALIDATION_ERROR"));
}