@Test public void fromTest() { assertThat(converter.from(null)).isNull(); assertThat(converter.from((byte) 0)).isFalse(); assertThat(converter.from((byte) 1)).isTrue(); assertThat(converter.from((byte) 2)).isTrue(); }
@Test public void toTest() { assertThat(converter.to(null)).isNull(); assertThat(converter.to(true)).isEqualTo((byte) 1); assertThat(converter.to(false)).isEqualTo((byte) 0); }