@Test
public void testConstraintValueEditorRefreshPredicateNotRefreshed() throws Exception {

    final SingleFieldConstraint constraintOne = mock(SingleFieldConstraint.class);
    final SingleFieldConstraint constraintTwo = mock(SingleFieldConstraint.class);
    final ConstraintValueEditor editorOne = mock(ConstraintValueEditor.class);
    final ConstraintValueEditor editorTwo = mock(ConstraintValueEditor.class);
    final Map<SingleFieldConstraint, ConstraintValueEditor> editors = new HashMap<>();
    editors.put(constraintOne, editorOne);
    editors.put(constraintTwo, editorTwo);
    doReturn(BaseSingleFieldConstraint.TYPE_LITERAL).when(constraintOne).getConstraintValueType();
    doReturn(BaseSingleFieldConstraint.TYPE_PREDICATE).when(constraintTwo).getConstraintValueType();
    RefreshUtil.refreshConstraintValueEditorsDropDownData(editors, mock(SingleFieldConstraint.class));
    verify(editorOne).refresh();
    verify(editorTwo, never()).refresh();
}