### Question:
MimeTypeInfoManager { @Nonnull @ReturnsMutableCopy public ICommonsOrderedSet <IMimeType> getAllMimeTypes () { final ICommonsOrderedSet <IMimeType> ret = new CommonsLinkedHashSet <> (); m_aRWLock.readLocked ( () -> m_aList.forEach (i -> ret.addAll (i.getAllMimeTypes ()))); return ret; } MimeTypeInfoManager(); static boolean isDefaultInstantiated(); @Nonnull static MimeTypeInfoManager getDefaultInstance(); @Nonnull MimeTypeInfoManager readDefault(); @Nonnull MimeTypeInfoManager read(@Nonnull final IReadableResource aRes); @Nonnull EChange clearCache(); void reinitializeToDefault(); @Nonnull @ReturnsMutableCopy IMicroDocument getAsDocument(); void registerMimeType(@Nonnull final MimeTypeInfo aInfo); @VisibleForTesting final void addExtension(@Nonnull final MimeTypeInfo aInfo, @Nonnull final ExtensionWithSource aExt); @VisibleForTesting final void addMimeType(@Nonnull final MimeTypeInfo aInfo, @Nonnull final MimeTypeWithSource aMimeType); @Nullable @ReturnsMutableCopy ICommonsList <MimeTypeInfo> getAllInfosOfFilename(@Nullable final File aFile); @Nullable @ReturnsMutableCopy ICommonsList <MimeTypeInfo> getAllInfosOfFilename(@Nullable final String sFilename); @Nullable @ReturnsMutableCopy ICommonsList <MimeTypeInfo> getAllInfosOfExtension(@Nullable final String sExtension); @Nullable @ReturnsMutableCopy ICommonsList <MimeTypeInfo> getAllInfosOfMimeType(@Nullable final IMimeType aMimeType); @Nonnull @ReturnsMutableCopy ICommonsList <MimeTypeInfo> getAllMimeTypeInfos(); @Nonnull @ReturnsMutableCopy ICommonsOrderedSet <IMimeType> getAllMimeTypes(); @Nonnull @ReturnsMutableCopy ICommonsOrderedSet <String> getAllMimeTypeStrings(); boolean containsMimeTypeForFilename(@Nonnull @Nonempty final String sFilename); @Nonnull @ReturnsMutableCopy ICommonsSet <IMimeType> getAllMimeTypesForFilename(@Nonnull @Nonempty final String sFilename); @Nonnull @ReturnsMutableCopy ICommonsSet <String> getAllMimeTypeStringsForFilename(@Nonnull @Nonempty final String sFilename); @Nullable IMimeType getPrimaryMimeTypeForFilename(@Nonnull @Nonempty final String sFilename); @Nullable String getPrimaryMimeTypeStringForFilename(@Nonnull @Nonempty final String sFilename); boolean containsMimeTypeForExtension(@Nonnull final String sExtension); @Nonnull @ReturnsMutableCopy ICommonsOrderedSet <IMimeType> getAllMimeTypesForExtension(@Nonnull final String sExtension); @Nonnull @ReturnsMutableCopy ICommonsOrderedSet <String> getAllMimeTypeStringsForExtension(@Nonnull final String sExtension); @Nullable IMimeType getPrimaryMimeTypeForExtension(@Nonnull final String sExtension); @Nullable String getPrimaryMimeTypeStringForExtension(@Nonnull final String sExtension); @Nonnull @ReturnsMutableCopy ICommonsOrderedSet <String> getAllExtensionsOfMimeType(@Nullable final IMimeType aMimeType); @Nullable String getPrimaryExtensionOfMimeType(@Nullable final IMimeType aMimeType); @Nonnull @ReturnsMutableCopy ICommonsOrderedSet <String> getAllGlobsOfMimeType(@Nullable final IMimeType aMimeType); static final String MIME_TYPE_INFO_XML; }### Answer:
@Test public void testGetAllMimeTypes () { final MimeTypeInfoManager aMgr = MimeTypeInfoManager.getDefaultInstance (); for (final IMimeType aMimeType : aMgr.getAllMimeTypes ()) assertNotNull (aMimeType); for (final String sMimeType : aMgr.getAllMimeTypeStrings ()) assertTrue (StringHelper.hasText (sMimeType)); }