assertThat(obejct.toString()).isEqualTo("\"value\"");

위의 코드는 아래의 방식으로 바꿀 수 있다.

assertThat(obejct).hasToString(expectedString)