@Test
    public void testMultiPartitionTopicPlacementOnSingleUnfencedBroker() {
        MockRandom random = new MockRandom();
        StripedReplicaPlacer placer = new StripedReplicaPlacer(random);
        assertEquals(new TopicAssignment(Arrays.asList(partitionAssignment(Collections.singletonList(0)),
                partitionAssignment(Collections.singletonList(0)),
                partitionAssignment(Collections.singletonList(0)))),
                place(placer, 0, 3, (short) 1, Arrays.asList(
                        new UsableBroker(0, Optional.empty(), false),
                        new UsableBroker(1, Optional.empty(), true))));
    }
Test that we perform striped replica placement as expected for a multi-partition topic
on a single unfenced broker
metadata/src/test/java/org/apache/kafka/metadata/placement/StripedReplicaPlacerTest.java