@Test
public void testParsePartitions() throws Exception {

    String input =
            "# A comment \n" +
            "   device-group  \n" +
            "MRN=joe\n" +
            "MRN=should be ignored\n";
    InputStream stream = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8));
    BufferedReader br = new BufferedReader(new InputStreamReader(stream));
    PartitionAssignmentController.PersistentPartitionAssignment c =
            new PartitionAssignmentController.PersistentPartitionAssignment(null);
    List<String> l = c.readPartitionFile(br);
    Assert.assertEquals(2, l.size());
    Assert.assertEquals("MRN=joe", PartitionAssignmentController.findMRNPartition(l));
}