### Question:
Utils { public static boolean isTrue(Object value) { if (Missing.isNullOrMissing(value)) { return false; } if (value instanceof Boolean) { return ((Boolean) value).booleanValue(); } if (value instanceof Number) { return ((Number) value).doubleValue() != 0.0; } return true; }  static Object getSubdocumentValue(Document document, String key); static Object getSubdocumentValueCollectionAware(Document document, String key); static String getDatabaseNameFromFullName(String fullName); static String getCollectionNameFromFullName(String fullName); static boolean isTrue(Object value); static Number normalizeNumber(Number value); static void markOkay(Document result); static String join(List<?> values, String delimiter); static void changeSubdocumentValue(Object document, String key, Object newValue); static void validateFieldNames(Document document); static Object removeSubdocumentValue(Object document, String key); static String describeType(Object value); static String joinTail(List<String> pathFragments); static String firstFragment(String input); static List<String> splitPath(String input); static String getShorterPathIfPrefix(String path1, String path2); static List<String> collectCommonPathFragments(String path1, String path2); static String getHostName(); static void copySubdocumentValue(Document input, Document result, String key); static final String PATH_DELIMITER; }### Answer:
@Test void testIsTrue() throws Exception { assertThat(Utils.isTrue("foo")).isTrue(); assertThat(Utils.isTrue(null)).isFalse(); assertThat(Utils.isTrue(true)).isTrue(); assertThat(Utils.isTrue(1)).isTrue(); assertThat(Utils.isTrue(1.0)).isTrue(); assertThat(Utils.isTrue(0)).isFalse(); assertThat(Utils.isTrue(Missing.getInstance())).isFalse(); }