### Question:
JarProcessor { public static JarType determineJarType(Path jarPath) throws IOException { JarFile jarFile = new JarFile(jarPath.toFile()); if (jarFile.getEntry("BOOT-INF") != null) { return JarType.SPRING_BOOT; } return JarType.STANDARD; }  static JarType determineJarType(Path jarPath);  }### Answer:
@Test public void testDetermineJarType_springBoot() throws IOException, URISyntaxException { Path springBootJar = Paths.get(Resources.getResource(SPRING_BOOT_RESOURCE_DIR).toURI()); JarType jarType = JarProcessor.determineJarType(springBootJar); assertThat(jarType).isEqualTo(JarType.SPRING_BOOT); }
@Test public void testDetermineJarType_standard() throws IOException, URISyntaxException { Path standardJar = Paths.get(Resources.getResource(STANDARD_RESOURCE_DIR).toURI()); JarType jarType = JarProcessor.determineJarType(standardJar); assertThat(jarType).isEqualTo(JarType.STANDARD); }