### Question:
SugarDataSource { protected void checkNotNull(Object object) { if (null == object) { throw new IllegalArgumentException("object shouldn't be null"); } } private  SugarDataSource(Class<T> tClass); static SugarDataSource<T> getInstance(Class<T> sClass); void insert(final T object, final SuccessCallback<Long> successCallback, final ErrorCallback errorCallback); void bulkInsert(final List<T> objects, final SuccessCallback<List<Long>> successCallback, final ErrorCallback errorCallback); void findById(final Long id, final SuccessCallback<T> successCallback, final ErrorCallback errorCallback); void query(final String whereClause, final String[] whereArgs, final String groupBy, final String orderBy, final String limit, final SuccessCallback<Cursor> successCallback, final ErrorCallback errorCallback); void listAll(final String orderBy, final SuccessCallback<List<T>> successCallback, final ErrorCallback errorCallback); void update(final T object, final SuccessCallback<Long> successCallback, final ErrorCallback errorCallback); void delete(final T object, final SuccessCallback<Boolean> successCallback, final ErrorCallback errorCallback); void delete(final String whereClause, final String[] whereArgs, final SuccessCallback<Integer> successCallback, final ErrorCallback errorCallback); void deleteAll(final SuccessCallback<Integer> successCallback, final ErrorCallback errorCallback); void count(final SuccessCallback<Long> successCallback, final ErrorCallback errorCallback); Class<T> getSugarClass();  }### Answer:
@Test(expected = IllegalArgumentException.class) @SuppressWarnings("all") public void testCheckNotNull() { TestRecord record = null; recordSugarDataSource.checkNotNull(record); }