@Test
public void testToStringFormatsCorrectly() {

  assertThat(SimpleMessageFormatter.toString("Hello World")).isSameInstanceAs("Hello World");
  assertThat(SimpleMessageFormatter.toString(10)).isEqualTo("10");
  assertThat(SimpleMessageFormatter.toString(false)).isEqualTo("false");
  // Not what you'd normally get from Object#toString() ...
  assertThat(SimpleMessageFormatter.toString(new String[] {"Foo", "Bar"}))
      .isEqualTo("[Foo, Bar]");
  assertThat(SimpleMessageFormatter.toString(new int[] {1, 2, 3})).isEqualTo("[1, 2, 3]");
}