@Test
  public void testPut_PartitionNotAvailableException() {
    member1.invoke(() -> {
      cache.set(new CacheFactory(getDistributedSystemProperties()).create());
      createPartitionedRegion(REGION_NAME, null, 1, 0, 12, newQuarterPartitionResolver());
    });

    member2.invoke(() -> {
      cache.set(new CacheFactory(getDistributedSystemProperties()).create());
      FixedPartitionAttributes fpa = createFixedPartition(QUARTER_1, true, 3);
      createPartitionedRegion(REGION_NAME, singletonList(fpa), 1, 40, 12,
          newQuarterPartitionResolver());
    });

    member3.invoke(() -> {
      cache.set(new CacheFactory(getDistributedSystemProperties()).create());
      FixedPartitionAttributes fpa = createFixedPartition(QUARTER_2, true, 3);
      createPartitionedRegion(REGION_NAME, singletonList(fpa), 1, 40, 12,
          newQuarterPartitionResolver());
    });

    member1.invoke(() -> {
      Throwable thrown = catchThrowable(() -> {
        putThroughAccessor(REGION_NAME);
      });

      assertThat(thrown)
          .isInstanceOf(PartitionNotAvailableException.class);
    });
  }
This test validates that if the required partition is not available at the time of entry
operation then PartitionNotAvailableException is thrown
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/fixed/FixedPartitioningDUnitTest.java