public String stringify(boolean value) {
    throw new UnsupportedOperationException(
        "stringify(boolean) was called on a non-boolean stringifier: " + toString());
  }
@Test
  public void testDefaultStringifier() {
    PrimitiveStringifier stringifier = DEFAULT_STRINGIFIER;

    assertEquals("true", stringifier.stringify(true));
    assertEquals("false", stringifier.stringify(false));

    assertEquals("0.0", stringifier.stringify(0.0));
    assertEquals("123456.7891234567", stringifier.stringify(123456.7891234567));
    assertEquals("-98765.43219876543", stringifier.stringify(-98765.43219876543));

    assertEquals("0.0", stringifier.stringify(0.0f));
    assertEquals("987.6543", stringifier.stringify(987.6543f));
    assertEquals("-123.4567", stringifier.stringify(-123.4567f));

    assertEquals("0", stringifier.stringify(0));
    assertEquals("1234567890", stringifier.stringify(1234567890));
    assertEquals("-987654321", stringifier.stringify(-987654321));

    assertEquals("0", stringifier.stringify(0l));
    assertEquals("1234567890123456789", stringifier.stringify(1234567890123456789l));
    assertEquals("-987654321987654321", stringifier.stringify(-987654321987654321l));

    assertEquals("null", stringifier.stringify(null));
    assertEquals("0x", stringifier.stringify(Binary.EMPTY));
    assertEquals(
        "0x0123456789ABCDEF", stringifier.stringify(toBinary(0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF)));
  }