@Test
public void testAddToVectorUsesProductOfWeights() {

  WordValueEncoder wv = new StaticWordValueEncoder("word");
  ContinuousValueEncoder cv = new ContinuousValueEncoder("cont");
  InteractionValueEncoder enc = new InteractionValueEncoder("interactions", wv, cv);
  Vector v1 = new DenseVector(200);
  enc.addInteractionToVector("a","0.9",0.5, v1);
  int k = enc.getProbes();
  // should set k distinct locations to 0.9*0.5
  assertEquals((float) k*0.5*0.9, v1.norm(1), 0);
  assertEquals(0.5*0.9, v1.maxValue(), 0);
}