### Question:
FileKeyStoreLoaderBuilderProvider { static FileKeyStoreLoader.Builder<? extends FileKeyStoreLoader> getBuilderForKeyStoreFileType(KeyStoreFileType type) { switch (Objects.requireNonNull(type)) { case JKS: return new JKSFileLoader.Builder(); case PEM: return new PEMFileLoader.Builder(); case PKCS12: return new PKCS12FileLoader.Builder(); case BCFKS: return new BCFKSFileLoader.Builder(); default: throw new AssertionError("Unexpected StoreFileType: " + type.name()); } }    }### Answer:
@Test public void testGetBuilderForJKSFileType() { FileKeyStoreLoader.Builder<?> builder = FileKeyStoreLoaderBuilderProvider.getBuilderForKeyStoreFileType(KeyStoreFileType.JKS); assertTrue(builder instanceof JKSFileLoader.Builder); }
@Test public void testGetBuilderForPEMFileType() { FileKeyStoreLoader.Builder<?> builder = FileKeyStoreLoaderBuilderProvider.getBuilderForKeyStoreFileType(KeyStoreFileType.PEM); assertTrue(builder instanceof PEMFileLoader.Builder); }
@Test public void testGetBuilderForPKCS12FileType() { FileKeyStoreLoader.Builder<?> builder = FileKeyStoreLoaderBuilderProvider.getBuilderForKeyStoreFileType(KeyStoreFileType.PKCS12); assertTrue(builder instanceof PKCS12FileLoader.Builder); }
@Test public void testGetBuilderForNullFileType() { assertThrows(NullPointerException.class, () -> { FileKeyStoreLoaderBuilderProvider.getBuilderForKeyStoreFileType(null); }); }