@Test
public void testToUsersReducerMinPreferencesUserIgnored() throws Exception {

  Reducer<VarLongWritable,VarLongWritable,VarLongWritable,VectorWritable>.Context context =
      EasyMock.createMock(Reducer.Context.class);
  ToUserVectorsReducer reducer = new ToUserVectorsReducer();
  setField(reducer, "minPreferences", 2);
  EasyMock.replay(context);
  reducer.reduce(new VarLongWritable(123), Collections.singletonList(new VarLongWritable(456)), context);
  EasyMock.verify(context);
}