@Test
public void testAddToVectorWithTextValueEncoder() {

  WordValueEncoder wv = new StaticWordValueEncoder("word");
  TextValueEncoder tv = new TextValueEncoder("text");
  InteractionValueEncoder enc = new InteractionValueEncoder("interactions", wv, tv);
  Vector v1 = new DenseVector(200);
  enc.addInteractionToVector("a","some text here",1.0, v1);
  int k = enc.getProbes();
  // should interact "a" with each of "some","text" and "here"
  assertEquals((float) k*3, v1.norm(1), 0);
}