### Question:
Utils { public static Object escapeSqlArg(Object arg) { if (arg == null) { return null; } if (arg instanceof Boolean) { return (Boolean) arg ? 1 : 0; } if(arg instanceof Number) { return arg; } return DatabaseUtils.sqlEscapeString(arg.toString()); } private  Utils(); static void addToContentValues(String key, Object value, ContentValues contentValues); static void bindContentValueArg(SQLiteStatement statement, int index, Object value); static Object escapeSqlArg(Object arg); static Function<T, Object> toEscapedSqlFunction(); static final UriDecorator DUMMY_URI_DECORATOR; }### Answer:
@Test public void shouldReturnNull() throws Exception { assertThat(Utils.escapeSqlArg(null)).isNull(); }
@Test public void shouldReturnSqlBoolean() throws Exception { assertThat(Utils.escapeSqlArg(true)).isEqualTo(1); }
@Test public void shouldReturnNumber() throws Exception { assertThat(Utils.escapeSqlArg(1L)).isEqualTo(1L); }
@Test public void shouldReturnEscapedString() throws Exception { assertThat(Utils.escapeSqlArg("test")).isEqualTo("'test'"); }