### Question:
LanguageFeatures { public static boolean canUseJava7(GenerationConfig config) { return !LESS_THAN_7.contains(config.getTargetVersion()); }  static boolean canUseJava7(GenerationConfig config); static boolean canUseJava8(GenerationConfig config);  }### Answer:
@Test public void correctTestForJava7() { assertThat(LanguageFeatures.canUseJava7(mockConfig(version)), equalTo(versionSpec.canUse7)); }