### Question:
TagGenerator { public String generate(final String artifactId, final String projectVersion) { return String.join(HYPHEN_DELIMITER, artifactId, projectVersion, Long.toString(currentTimeSource.get())); } @Inject  TagGenerator(final CurrentTimeSource currentTimeSource); String generate(final String artifactId, final String projectVersion);  }### Answer:
@Test public void testGenerate() { when(currentTimeSource.get()).thenReturn(CURRENT_TIME); String expected = String.join(HYPHEN_DELIMITER, ARTIFACT_ID, PROJECT_VERSION, Long.toString(CURRENT_TIME)); assertThat(tagGenerator.generate(ARTIFACT_ID, PROJECT_VERSION), equalTo(expected)); }