### Question:
DateUtils { static String createDateStringFromIntegerInput( @IntRange(from = 1, to = 12) int month, @IntRange(from = 0, to = 9999) int year) { String monthString = String.valueOf(month); if (monthString.length() == 1) { monthString = "0" + monthString; } String yearString = String.valueOf(year); if (yearString.length() == 3) { return ""; } if (yearString.length() > 2) { yearString = yearString.substring(yearString.length() - 2); } else if (yearString.length() == 1) { yearString = "0" + yearString; } return monthString + yearString; }    }### Answer:
@Test public void createDateStringFromIntegerInput_whenDateHasOneDigitMonthAndYear_addsZero() { assertEquals("0102", DateUtils.createDateStringFromIntegerInput(1, 2)); }
@Test public void createDateStringFromIntegerInput_whenDateHasTwoDigitValues_returnsExpectedValue() { assertEquals("1132", DateUtils.createDateStringFromIntegerInput(11, 32)); }
@Test public void createDateStringFromIntegerInput_whenDateHasFullYear_truncatesYear() { assertEquals("0132", DateUtils.createDateStringFromIntegerInput(1, 2032)); }
@Test public void createDateStringFromIntegerInput_whenDateHasThreeDigitYear_returnsEmpty() { assertEquals("", DateUtils.createDateStringFromIntegerInput(12, 101)); }