### Question:
VersionFormatter { public static String asRawVersion( String version, String timestamp, String sequence ) { StringBuilder buff = new StringBuilder(); if ( version == null ) { version = VersionSupport.UNKNOWN; } buff.append( version ); if ( timestamp != null ) { buff.append( "," ).append( timestamp ); } if ( sequence != null ) { buff.append( "#" ).append( sequence ); } return buff.toString(); }  static String asRawVersion( String version, String timestamp, String sequence ); static String asCanonicalVersion( String version, String timestamp, String sequence );  }### Answer:
@Test public void rawVersionShouldContainSnapshotWhenVersionIsSnapshot() { assertThat( VersionFormatter.asRawVersion( "1.0-SNAPSHOT", "201009291818", "1" ), containsString( "SNAPSHOT" ) ); }
@Test public void rawVersionShouldContainAllInformationWhenVersionIsRelease() { assertThat( VersionFormatter.asRawVersion( "1.0", "201009291818", "1" ), equalTo( "1.0,201009291818#1" ) ); }