### Question:
RandomInMemoryFileProvider extends AbstractProvider<RandomInMemoryFile> { public RandomInMemoryFileProvider() { try { this.mimeTypes = getConfig(MIME_TYPES, asList()); this.maxSize = getConfig(MAX_SIZE, asInt()); this.numberOfFiles = getConfig(NUMBER_OF_FILES, asInt()); init(); } catch (NotReadyException e) { } } RandomInMemoryFileProvider();  RandomInMemoryFileProvider(List<String> mimeTypes, int maxSize, int numberOfFiles); @Override RandomInMemoryFile take(); @Override String name();  }### Answer:
@Test public void testRandomInMemoryFileProvider() throws IOException { SimulationConfig .newInstance("classpath: final RandomInMemoryFileProvider provider = new RandomInMemoryFileProvider(); final RandomInMemoryFile file = provider.take(); final String mimeType = file.getMimeType(); assertThat(mimeType, equalTo("plain/text")); final byte[] bytes = file.asStream().readAllBytes(); assertTrue(bytes.length > 0); assertTrue(bytes.length < 10); }