### Question:
OmKeyLocationInfoGroup { public List<OmKeyLocationInfo> getBlocksLatestVersionOnly() { return new ArrayList<>(locationVersionMap.get(version)); } OmKeyLocationInfoGroup(long version,
                                List<OmKeyLocationInfo> locations);  OmKeyLocationInfoGroup(long version,
                                Map<Long, List<OmKeyLocationInfo>> locations); List<OmKeyLocationInfo> getBlocksLatestVersionOnly(); long getVersion(); List<OmKeyLocationInfo> getLocationList(); long getLocationListCount(); List<OmKeyLocationInfo> getLocationList(Long versionToFetch); KeyLocationList getProtobuf(boolean ignorePipeline); static OmKeyLocationInfoGroup getFromProtobuf(
      KeyLocationList keyLocationList); @Override String toString();  }### Answer:
@Test public void testCreatingAndGetLatestVersionLocations() { OmKeyLocationInfoGroup testInstance = createTestInstance(); List<OmKeyLocationInfo> latestList = testInstance.getBlocksLatestVersionOnly(); Assert.assertEquals(1, latestList.size()); Assert.assertEquals(2, latestList.get(0).getCreateVersion()); }