public void testSetData() {
            double[] xNullVal = null;
            double[] vNullVal = null;
            double[] xValueSize6 = new double[6];
            double[] vValueSize6 = new double[6];
            double[] xValueSize4 = new double[4];
            double[] vValueSize4 = new double[4];
            
            
            boolean correct = false;
            
            
            /////////TEST whether set may have null values
            try{
                    aParticle.setData(xNullVal, vNullVal);
            }catch(NullPointerException ne){
                    correct = true;
            }
            
            checkFailSettingData(correct);
            
            correct = false;
            
            ///////TEST whether xValue is null
            try{
                    aParticle.setData(xNullVal, vValueSize6);
            }catch(NullPointerException ne){
                    correct = true;
            }
            
            checkFailSettingData(correct);
            
            correct = false;
            ///////TEST whether xValue is null
            try{
                    aParticle.setData(xValueSize6, vNullVal);
            }catch(NullPointerException ne){
                    correct = true;
            }
            
            checkFailSettingData(correct);
            
            //////TEST check set dissimilar items
            correct = false;
            try{
                    aParticle.setData(xValueSize6, vValueSize4);
            }catch(NullPointerException ne){
                    correct = true;
            }
            
            checkFailSettingData(correct);
            
            correct = true;
            //////TEST check setting is correct
            //////Different from above, it must be true
            //////Otherwise test fails
            for(int i = 0; i < xValueSize6.length; i++){
                    xValueSize6[i] = i*i;
            }
            
            for(int i = 0; i < vValueSize6.length; i++){
                    vValueSize6[i] = i+i;
            }
            
            try{
                    aParticle.setData(xValueSize6, vValueSize6);
            }catch(NullPointerException ne){
                    correct = false;
            }
            
            checkFailSettingData(correct);
            
            //////TEST check if X data is set correctly
            correct = true;
            double []gottenXValue = aParticle.getPosition();
            for(int i = 0; i < gottenXValue.length; i++){
                    if(gottenXValue[i] != xValueSize6[i]){
                            correct = false;
                    }
            }
            
            checkFailSettingData(correct);
    }