public static <T> boolean contains(T[] array, T item) {
        for (T o : array) {
            if (o == null) {
                if (item == null) {
                    return true;
                }
            } else {
                if (o.equals(item)) {
                    return true;
                }
            }
        }
        return false;
    }
@Test
    public void contains() {
        Object[] array = new Object[1];
        Object object = new Object();
        array[0] = object;

        assertTrue(ArrayUtils.contains(array, object));
    }