class InMemoryFactory {

	public URL createInMemoryResource(String resource) throws MalformedURLException
	{
		String content = resource.replace('\\', '/');
		return url(content);
	}

}

class InMemoryFactoryTest {

     InMemoryFactory underTest;

    @Test(/*expected=IllegalArgumentException.class*/)
    public void testCreateInMemoryResourceError()
    {

        try
        {
            String resource = "data\\stuf\\content.properties";

            URL createInMemoryResource = underTest.createInMemoryResource(resource);
            createInMemoryResource.toExternalForm();
        } catch (MalformedURLException e)
        {
            fail("No exception should occu");
        }
    }

}