LiferayMoreVersionValidator implements ValidatorSupplier { @Override public List<String> get() { return BladeUtil.getWorkspaceProductKeys(false); }  @Override List<String> get(); @Override void validate(String name, String value);  }
@Test public void testSort() throws Exception { LiferayMoreVersionValidator lmvv = new LiferayMoreVersionValidator(); List<String> vals = lmvv.get(); String first = vals.get(0); Assert.assertTrue(first, first.startsWith("dxp")); String second = vals.get(1); Assert.assertTrue(second, second.startsWith("dxp")); String last = vals.get(vals.size() - 1); Assert.assertTrue(last, last.startsWith("commerce")); }