public void setInitialState(PartitionTableView partitionTable) {
        partitionServiceLock.lock();
        try {
            partitionStateManager.setInitialState(partitionTable);
        } finally {
            partitionServiceLock.unlock();
        }
    }
@Test(expected = IllegalStateException.class)
    public void test_setInitialState_multipleTimes() {
        InternalPartition[] partitions = new InternalPartition[partitionCount];
        for (int i = 0; i < partitionCount; i++) {
            PartitionReplica[] replicas = new PartitionReplica[MAX_REPLICA_COUNT];
            replicas[0] = PartitionReplica.from(localMember);
            partitions[i] = new ReadonlyInternalPartition(replicas, i, RandomPicker.getInt(1, 10));
        }

        partitionService.setInitialState(new PartitionTableView(partitions));
        partitionService.setInitialState(new PartitionTableView(partitions));
    }