package com.grayben.riskExtractor.headingMarker.nominator;

import java.util.List;

import com.grayben.riskExtractor.headingMarker.UnmodifiableText;

public class NominatedText
		extends UnmodifiableText
		implements NomineesRetrievable {

    private List<Integer> nominees;

    public NominatedText(List<String> stringList, List<Integer> nominees) {
        super(stringList);
        this.nominees = nominees;
    }

    public NominatedText(
            UnmodifiableText unmodifiableText,
            List<Integer> nominees){
        super(unmodifiableText);
        this.nominees = nominees;
    }

    public NominatedText(NominatedText nominatedText){
        this(nominatedText, nominatedText.getNominees());
    }

    @Override
    public List<Integer> getNominees() {
        return nominees;
    }
}

@@ -53,16 +53,46 @@
 nator;%0A%0A
+import java.util.Collections;%0A
 import j
@@ -106,16 +106,16 @@
 l.List;%0A
-
 %0Aimport 
@@ -399,24 +399,145 @@
 tringList);%0A
+        if (nominees == null) %7B%0A            throw new NullPointerException(%22Attempted to pass null argument%22);%0A        %7D%0A
         this
@@ -704,24 +704,145 @@
 iableText);%0A
+        if (nominees == null) %7B%0A            throw new NullPointerException(%22Attempted to pass null argument%22);%0A        %7D%0A
         this
@@ -1060,24 +1060,58 @@
  return 
+Collections.unmodifiableList(this.
 nominees
 ;%0A    %7D%0A
@@ -1094,26 +1094,27 @@
 st(this.nominees
+)
 ;%0A    %7D%0A%7D%0A

Add argument checks to pass tests