public static java.util.Date toLogical(Schema schema, int value) {
        if (!(LOGICAL_NAME.equals(schema.name())))
            throw new DataException("Requested conversion of Date object but the schema does not match.");
        return new java.util.Date(value * MILLIS_PER_DAY);
    }
@Test
    public void testToLogical() {
        assertEquals(EPOCH.getTime(), Date.toLogical(Date.SCHEMA, 0));
        assertEquals(EPOCH_PLUS_TEN_THOUSAND_DAYS.getTime(), Date.toLogical(Date.SCHEMA, 10000));
    }