InMemoryFactory { public URL createInMemoryClass(Class<?> claSs) throws MalformedURLException { return url( claSs.getName().replace('.', '/') + ".class"); } InMemoryFactory(); URL createInMemoryClass(Class<?> claSs); URL createInMemoryResource(String resource);  }
@Test public void testCreateInMemoryClass() { try { URL createInMemoryClass = underTest.createInMemoryClass(getClass()); assertThat(createInMemoryClass).isNotNull(); assertThat(createInMemoryClass.toString()).isEqualTo("inmemory: } catch (MalformedURLException e) { fail("No exception should occu"); } }