### Question:
AdapterUtils { public static Enum<?> findEnumIgnoreCase(Class<? extends Enum<?>> enumType, String name) { Objects.requireNonNull(enumType); Objects.requireNonNull(name); return Arrays.stream(enumType.getEnumConstants()) .filter(e -> e.name().equalsIgnoreCase(name)) .findFirst() .orElseThrow( () -> new IllegalArgumentException( "Cannot convert String \"" + name + "\" to enum of type " + enumType.getName())); } private  AdapterUtils(); static Boolean parseBoolean(String s); static Date parseDate(String s); static LocalDate parseLocalDate(String s); static LocalDateTime parseLocalDateTime(String s); static String withoutDecimals(String s); static Enum<?> findEnumIgnoreCase(Class<? extends Enum<?>> enumType, String name); static Class<?> uncheckedClassForName(String s);  }### Answer:
@Test public void testFindMondayInDayOfWeekShouldReturnMONDAY() throws Exception { assertEquals(DayOfWeek.MONDAY, AdapterUtils.findEnumIgnoreCase(DayOfWeek.class, "Monday")); }
@Test public void testFindMONDAYInDayOfWeekShouldReturnMONDAY() throws Exception { assertEquals(DayOfWeek.MONDAY, AdapterUtils.findEnumIgnoreCase(DayOfWeek.class, "MONDAY")); }
@Test public void testFindmondayInDayOfWeekShouldReturnMONDAY() throws Exception { assertEquals(DayOfWeek.MONDAY, AdapterUtils.findEnumIgnoreCase(DayOfWeek.class, "monday")); }
@Test(expected = IllegalArgumentException.class) public void testFindJanuaryInDayOfWeekShouldThrowException() throws Exception { AdapterUtils.findEnumIgnoreCase(DayOfWeek.class, "January"); }
@Test(expected = NullPointerException.class) public void testFindNullInDayOfWeekShouldThrowException() throws Exception { AdapterUtils.findEnumIgnoreCase(DayOfWeek.class, null); }
@Test(expected = NullPointerException.class) public void testFindMondayInNullEnumShouldThrowException() throws Exception { AdapterUtils.findEnumIgnoreCase(null, "Monday"); }