@Test
public void restrictToKeysAddFilterOnGivenKeys() {

    //given
    Set<String> keys = Collections.singleton("procDef");
    //when
    GetProcessInstancesPayload filter = restrictionApplier.restrictToKeys(keys);
    //then
    assertThat(filter.getProcessDefinitionKeys()).isEqualTo(keys);
}