### Question:
NTGUtility { public static int getSpecificExpireDateTime(int year, int month, int day, int hour, int minute, int second) { LocalDateTime localDateTime = LocalDateTime.of(year, month, day, hour, minute, second); return (int) (DateTimeUtility.getMillisecond(localDateTime) / 1000); }  static String asString(Object obj); static String getNewClOrdID(); static String getNewShortClOrdID(String userKey); static IdleStatus translateMinaIdleStatus(org.apache.mina.core.session.IdleStatus minaStatus); static String getMachineIP(); static String getRandomString( int length ); static String setupLoggerConfiguration(); static String getTransactTime(); static LocalDateTime getTransactTimeAsDate(); static LocalDateTime getTransactTimeAsDate(long time); static LocalDateTime getTransactTimeAsDate(String time); static String getTransactTime(long time); static long getTransactTime(String time); static long getTransactTime(LocalDateTime localDateTime); static String getEntryTime(); static int getExpireDateTime(); static int getExpireDateTime(LocalDateTime date, String dateFormat); static int getExpireDateTime(String dateFormat); static int getSpecificExpireDateTime(int year, int month, int day, int hour, int minute, int second); static String getHexdump(IoBuffer in, int lengthLimit); static final String EOL; }### Answer:
@Test public void testGetSpecificExpireDateTime() { long currentMillisecond = System.currentTimeMillis(); int expected = (int) (currentMillisecond / 1000); LocalDateTime localDateTime = DateTimeUtility.toLocalDateTime(currentMillisecond); assertEquals(expected, NTGUtility.getSpecificExpireDateTime(localDateTime.getYear(), localDateTime.getMonth().getValue(), localDateTime.getDayOfMonth(), localDateTime.getHour(), localDateTime.getMinute(), localDateTime.getSecond())); }