InteractionValueEncoder enc = new InteractionValueEncoder("interactions", wv, cv);
Vector v1 = new DenseVector(200);
enc.addInteractionToVector("a","1.0",1.0, v1);
int k = enc.getProbes();
// should set k distinct locations to 1
assertEquals((float) k, v1.norm(1), 0);
assertEquals(1.0, v1.maxValue(), 0);
// adding same interaction again should increment weights
enc.addInteractionToVector("a","1.0",1.0,v1);
assertEquals((float) k*2, v1.norm(1), 0);