// Path: src/main/java/net/seninp/jmotif/sax/motif/MotifRecord.java
// public class MotifRecord {
// 
//   private int location;
//   private TreeSet<Integer> occurrences;
// 
//   /**
//    * Constructor.
//    * 
//    * @param motifLiocation the motif location.
//    * @param motifOccurrences occurrence locations.
//    */
//   public MotifRecord(int motifLiocation, ArrayList<Integer> motifOccurrences) {
//     this.location = motifLiocation;
//     this.occurrences = new TreeSet<Integer>();
//     this.occurrences.addAll(motifOccurrences);
//   }
// 
//   /**
//    * The location setter.
//    * 
//    * @param location the motif location.
//    */
//   public void setLocation(int location) {
//     this.location = location;
//   }
// 
//   /**
//    * The location getter.
//    * 
//    * @return the motif location.
//    */
//   public int getLocation() {
//     return location;
//   }
// 
//   /**
//    * Gets the occurrence frequency.
//    * 
//    * @return the motif occurrence frequency (itself isnt included).
//    */
//   public int getFrequency() {
//     return this.occurrences.size();
//   }
// 
//   /**
//    * The occurrences array (copy) getter.
//    * 
//    * @return motif occurrences.
//    */
//   public ArrayList<Integer> getOccurrences() {
//     ArrayList<Integer> res = new ArrayList<Integer>(this.occurrences.size());
//     for (Integer e : this.occurrences) {
//       res.add(e);
//     }
//     return res;
//   }
// 
//   /**
//    * The location setter.
//    * 
//    * @param newLocation the motif location.
//    */
//   public void add(int newLocation) {
//     if (!this.occurrences.contains(newLocation)) {
//       this.occurrences.add(newLocation);
//     }
//   }
// 
//   @Override
//   public String toString() {
//     return "MotifRecord [location=" + this.location + ", freq=" + this.occurrences.size()
//         + ", occurrences=" + occurrences + "]";
//   }
// 
//   public boolean isEmpty() {
//     return occurrences.isEmpty();
//   }
// 
// }


import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import org.junit.Test;
import net.seninp.jmotif.sax.motif.MotifRecord;
package net.seninp.jmotif.sax.datastructures;


public class TestMotifRecord {

  @Test
  public void testMotifRecord() {
// Path: src/main/java/net/seninp/jmotif/sax/motif/MotifRecord.java
// public class MotifRecord {
// 
//   private int location;
//   private TreeSet<Integer> occurrences;
// 
//   /**
//    * Constructor.
//    * 
//    * @param motifLiocation the motif location.
//    * @param motifOccurrences occurrence locations.
//    */
//   public MotifRecord(int motifLiocation, ArrayList<Integer> motifOccurrences) {
//     this.location = motifLiocation;
//     this.occurrences = new TreeSet<Integer>();
//     this.occurrences.addAll(motifOccurrences);
//   }
// 
//   /**
//    * The location setter.
//    * 
//    * @param location the motif location.
//    */
//   public void setLocation(int location) {
//     this.location = location;
//   }
// 
//   /**
//    * The location getter.
//    * 
//    * @return the motif location.
//    */
//   public int getLocation() {
//     return location;
//   }
// 
//   /**
//    * Gets the occurrence frequency.
//    * 
//    * @return the motif occurrence frequency (itself isnt included).
//    */
//   public int getFrequency() {
//     return this.occurrences.size();
//   }
// 
//   /**
//    * The occurrences array (copy) getter.
//    * 
//    * @return motif occurrences.
//    */
//   public ArrayList<Integer> getOccurrences() {
//     ArrayList<Integer> res = new ArrayList<Integer>(this.occurrences.size());
//     for (Integer e : this.occurrences) {
//       res.add(e);
//     }
//     return res;
//   }
// 
//   /**
//    * The location setter.
//    * 
//    * @param newLocation the motif location.
//    */
//   public void add(int newLocation) {
//     if (!this.occurrences.contains(newLocation)) {
//       this.occurrences.add(newLocation);
//     }
//   }
// 
//   @Override
//   public String toString() {
//     return "MotifRecord [location=" + this.location + ", freq=" + this.occurrences.size()
//         + ", occurrences=" + occurrences + "]";
//   }
// 
//   public boolean isEmpty() {
//     return occurrences.isEmpty();
//   }
// 
// }


// Path: src/test/java/net/seninp/jmotif/sax/datastructures/TestMotifRecord.java
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import org.junit.Test;
import net.seninp.jmotif.sax.motif.MotifRecord;

package net.seninp.jmotif.sax.datastructures;


public class TestMotifRecord {

  @Test
  public void testMotifRecord() {
    MotifRecord mr = new MotifRecord(1, new ArrayList<Integer>());