StreamIdConversions { public static String formatSiteStreamId(String siteId, String streamTypeId) { return String.format("%s_%s", streamTypeId, siteId).toUpperCase(); }  static String formStreamTypeId(String streamTypeId); static String formatSiteStreamId(String siteId, String streamTypeId); static String parseStreamTypeId(String siteId, String generatedUniqueStreamId);  }
@Test public void testGenerateUniqueStreamId() { Assert.assertEquals("MOCK_STREAM_TEST", StreamIdConversions.formatSiteStreamId("test", "mock_stream")); }