### Question:
Level implements java.io.Serializable { public static Level toLevel(String sArg) { return toLevel(sArg, Level.DEBUG); } private  Level(int levelInt, String levelStr); String toString(); int toInt(); Integer toInteger(); boolean isGreaterOrEqual(Level r); static Level toLevel(String sArg); static Level valueOf(String sArg); static Level toLevel(int val); static Level toLevel(int val, Level defaultLevel); static Level toLevel(final String sArg, Level defaultLevel); static Level fromLocationAwareLoggerInteger(int levelInt); static int toLocationAwareLoggerInteger(Level level); static final int OFF_INT; static final int ERROR_INT; static final int WARN_INT; static final int INFO_INT; static final int DEBUG_INT; static final int TRACE_INT; static final int ALL_INT; static final Integer OFF_INTEGER; static final Integer ERROR_INTEGER; static final Integer WARN_INTEGER; static final Integer INFO_INTEGER; static final Integer DEBUG_INTEGER; static final Integer TRACE_INTEGER; static final Integer ALL_INTEGER; static final Level OFF; static final Level ERROR; static final Level WARN; static final Level INFO; static final Level DEBUG; static final Level TRACE; static final Level ALL; final int levelInt; final String levelStr; }### Answer:
@Test public void withSpacePrefix( ) { assertEquals(Level.INFO, Level.toLevel(" INFO ")); }
@Test public void withSpaceAround( ) { assertEquals(Level.INFO, Level.toLevel(" INFO ")); }
@Test public void smoke( ) { assertEquals(Level.TRACE, Level.toLevel("TRACE")); assertEquals(Level.DEBUG, Level.toLevel("DEBUG")); assertEquals(Level.INFO, Level.toLevel("INFO")); assertEquals(Level.WARN, Level.toLevel("WARN")); assertEquals(Level.ERROR, Level.toLevel("ERROR")); }
@Test public void withSpaceSuffix( ) { assertEquals(Level.INFO, Level.toLevel("INFO ")); }