### Question:
FixNameStrategy implements NameStrategy { @Override public String getFullName(String script) { return fullName; } FixNameStrategy(String fullName); @Override String getFullName(String script);  }### Answer:
@Test public void testSimpleName() { String script = "script"; FixNameStrategy nameStrategy = new FixNameStrategy("Test"); String fullName = nameStrategy.getFullName(script); assertThat(fullName).isEqualTo("Test"); assertThat(NameStrategy.extractSimpleName(fullName)).isEqualTo("Test"); assertThat(NameStrategy.extractPackageName(fullName)).isEqualTo(""); }
@Test public void testFullyQualifiedName() { String script = "script"; FixNameStrategy nameStrategy = new FixNameStrategy("com.example.Test"); String fullName = nameStrategy.getFullName(script); assertThat(fullName).isEqualTo("com.example.Test"); assertThat(NameStrategy.extractSimpleName(fullName)).isEqualTo("Test"); assertThat(NameStrategy.extractPackageName(fullName)).isEqualTo("com.example"); }