public static MemberSelector selectorForProcessIds(ProcessId... processIds) {
    List<ProcessId> processIdList = asList(processIds);
    return member -> {
      ProcessId memberProcessId = fromKey(member.getAttribute(PROCESS_KEY.getKey()));
      return processIdList.contains(memberProcessId);
    };
  }
@Test
  public void selecting_web_and_app_nodes() {
    Member member = mock(Member.class);
    MemberSelector underTest = HazelcastMemberSelectors.selectorForProcessIds(WEB_SERVER, APP);

    when(member.getAttribute(PROCESS_KEY.getKey())).thenReturn(COMPUTE_ENGINE.getKey());
    assertThat(underTest.select(member)).isFalse();

    when(member.getAttribute(PROCESS_KEY.getKey())).thenReturn(WEB_SERVER.getKey());
    assertThat(underTest.select(member)).isTrue();

    when(member.getAttribute(PROCESS_KEY.getKey())).thenReturn(APP.getKey());
    assertThat(underTest.select(member)).isTrue();
  }