### Question:
SwaggerApiFileNameChecker implements ApiFileNameChecker { @Override public boolean isApiFile(String fileName) { return fileName.endsWith("swagger.json") || fileName.endsWith("swagger.yml") || fileName.endsWith("swagger.yaml"); }  @Override boolean isApiFile(String fileName); @Override int getOrder();  }### Answer:
@Test public void testIsApiFileReturnsFalseWhenNotSwagger() { boolean result = underTest.isApiFile("something.yaml"); assertThat(result).isFalse(); }
@Test public void testIsApiFileReturnsTrueWhenSwaggerYaml() { boolean result = underTest.isApiFile("swagger.yaml"); assertThat(result).isTrue(); }
@Test public void testIsApiFilenameReturnsTrueWhenSwaggerYml() { boolean result = underTest.isApiFile("swagger.yml"); assertThat(result).isTrue(); }
@Test public void testIsApiFilenameReturnsTrueWhenSwaggerJson() { boolean result = underTest.isApiFile("swagger.json"); assertThat(result).isTrue(); }
@Test public void testIsApiFileReturnsTrueWhenSwaggerYamlAndFullPath() { boolean result = underTest.isApiFile("c:/something/project/swagger.yaml"); assertThat(result).isTrue(); }