@@ -0,0 +1,1873 @@
+/*%0A * Copyright 2019 B2i Healthcare Pte Ltd, http://b2i.sg%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.b2international.snowowl.snomed.datastore.internal.id.reservations;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.util.Set;%0A%0Aimport org.junit.Test;%0A%0Aimport com.b2international.snowowl.snomed.SnomedConstants.Concepts;%0Aimport com.b2international.snowowl.snomed.datastore.id.SnomedIdentifier;%0Aimport com.b2international.snowowl.snomed.datastore.id.SnomedIdentifiers;%0Aimport com.b2international.snowowl.snomed.datastore.id.reservations.Reservation;%0Aimport com.b2international.snowowl.snomed.datastore.id.reservations.Reservations;%0Aimport com.google.common.collect.Sets;%0A%0A/**%0A * @since 6.17%0A */%0Apublic class SnomedIdSetReservationTest %7B%0A%09%0A%09@Test%0A%09public void testIdSetReservationReservedIds() %7B%0A%09%09final Reservation idSetReservation = Reservations.idSetReservation(Sets.newHashSet(Concepts.MODULE_ROOT, Concepts.MODULE_SCT_CORE));%0A%09%09final SnomedIdentifier rootIdentifier = SnomedIdentifiers.create(Concepts.ROOT_CONCEPT);%0A%09%09final SnomedIdentifier sctCoreIdentifier = SnomedIdentifiers.create(Concepts.MODULE_SCT_CORE);%0A%09%09%0A%09%09final Set%3CSnomedIdentifier%3E reservedIds = idSetReservation.intersection(Sets.newHashSet(rootIdentifier, sctCoreIdentifier));%0A%09%09%0A%09%09assertThat(reservedIds).containsOnly(sctCoreIdentifier);%0A%09%7D%0A%09%0A%7D%0A%0A

Add test for IdSetReservation