@Test
public void shouldSubscribeToFeatureSet() {

  allSubscriptions = allSubscriptions.subList(2, 4);
  // Case: excluded flag = true
  boolean actual1 = Store.isSubscribedToFeatureSet(allSubscriptions, "project1", "fs_1");
  boolean expected1 = false;
  // Case: excluded flag = false
  boolean actual2 = Store.isSubscribedToFeatureSet(allSubscriptions, "project1", "fs_2");
  boolean expected2 = true;
  // Case: featureset does not exist
  boolean actual3 =
      Store.isSubscribedToFeatureSet(allSubscriptions, "project1", "fs_nonexistent");
  boolean expected3 = false;
  assertThat(actual1, equalTo(expected1));
  assertThat(actual2, equalTo(expected2));
  assertThat(actual3, equalTo(expected3));
}