### Question:
CommonHelper { public static Integer fromString(String s) { try { return Integer.parseInt(s); } catch (final Throwable throwable) { return null; } } private  CommonHelper(); static MemoryMXBean memoryMXBean(); static ClassLoadingMXBean classLoadingMXBean(); static OperatingSystemMXBean operatingSystemMXBean(); static RuntimeMXBean runtimeMXBean(); static ThreadMXBean threadMXBean(); static long memoryPoolMXBeanCollectionUsage(); static Integer fromString(String s); static Boolean booleanFromString(String s); static Long longFromString(String s); static UUID tryParse(String s); static int longToInt(long in); static int calculateMaxMemory(); static int getTotalSystemMemory(); static String getIpAddress(@NotNull String input); static @Unmodifiable @NotNull Collection<String> getAllAvailableIpAddresses(); static void setSystemPropertyIfUnset(@NotNull String property, @NotNull String value); static @NotNull String formatThrowable(@NotNull Throwable throwable); static ReferencedOptional<T> findEnumField(Class<T> enumClass, String field); static final ExecutorService EXECUTOR; static final ScheduledExecutorService SCHEDULED_EXECUTOR_SERVICE; static final ArrayDeque<String> EMPTY_STRING_QUEUE; static final DateFormat DATE_FORMAT; static final DecimalFormat DECIMAL_FORMAT; }### Answer:
@Test void testFromString() { Integer i = CommonHelper.fromString("1"); Assertions.assertNotNull(i); Assertions.assertEquals(1, i); Integer i1 = CommonHelper.fromString("lol"); Assertions.assertNull(i1); }