void () { BuildNumber IU_173_SNAPSHOT = BuildNumber.fromString("IU-173.SNAPSHOT"); assertTrue(IU_173_SNAPSHOT.isSnapshot()); assertEquals("IU", IU_173_SNAPSHOT.getProductCode()); assertEquals(Ints.asList(IU_173_SNAPSHOT.getComponents()), Arrays.asList(173, BuildNumber.SNAPSHOT_VALUE)); assertEquals(IU_173_SNAPSHOT, BuildNumber.fromStringWithProductCode("173.SNAPSHOT", "IU")); assertEquals(IU_173_SNAPSHOT, BuildNumber.fromStringWithProductCode("IU-173.SNAPSHOT", "IU")); assertEquals(IU_173_SNAPSHOT, BuildNumber.fromStringWithProductCode("IU-173.SNAPSHOT", "IC")); }