YesNoStringToBooleanMapper implements TypeMapper<String, Boolean> { @Override public Type getJavaType(Column column) { if (column.isNullable()) { return Boolean.class; } else { return boolean.class; } }  @Override String getLabel(); @Override Type getJavaType(Column column); @Override Boolean toJavaType(Column column, Class<?> entityType, String value); @Override String toDatabaseType(Boolean value);  }
@Override @Test protected void getJavaType() { when(column().isNullable()).thenReturn(true); assertEquals(Boolean.class, typeMapper().getJavaType(column())); }