### Question:
TemporalUtil { public static OffsetTime truncateOffsetToMinutes( OffsetTime value ) { int offsetMinutes = value.getOffset().getTotalSeconds() / 60; ZoneOffset truncatedOffset = ZoneOffset.ofTotalSeconds( offsetMinutes * 60 ); return value.withOffsetSameInstant( truncatedOffset ); } private  TemporalUtil(); static OffsetTime truncateOffsetToMinutes( OffsetTime value ); static long nanosOfDayToUTC( long nanosOfDayLocal, int offsetSeconds ); static long nanosOfDayToLocal( long nanosOfDayUTC, int offsetSeconds ); static long getNanosOfDayUTC( OffsetTime value ); static final long NANOS_PER_SECOND; static final long AVG_NANOS_PER_MONTH; static final long SECONDS_PER_DAY; static final long AVG_SECONDS_PER_MONTH; static final double AVG_DAYS_PER_MONTH; }### Answer:
@Test void shouldDoNothingForOffsetWithoutSeconds() { OffsetTime time = OffsetTime.of( 23, 30, 10, 0, ZoneOffset.ofHoursMinutes( -5, -30 ) ); OffsetTime truncatedTime = TemporalUtil.truncateOffsetToMinutes( time ); assertEquals( time, truncatedTime ); }
@Test void shouldTruncateOffsetSeconds() { OffsetTime time = OffsetTime.of( 14, 55, 50, 0, ZoneOffset.ofHoursMinutesSeconds( 2, 15, 45 ) ); OffsetTime truncatedTime = TemporalUtil.truncateOffsetToMinutes( time ); assertEquals( OffsetTime.of( 14, 55, 5, 0, ZoneOffset.ofHoursMinutes( 2, 15 ) ), truncatedTime ); }