@Test
public void testHomeProperty()
    throws Exception
{

    String saved = System.getProperty( "xmvn.home" );
    try
    {
        System.setProperty( "xmvn.home", resourceDir.toString() );
        try (XMvnHomeClassLoader loader = new XMvnHomeClassLoader( null ))
        {
            assertEquals( resourceDir, loader.getHome() );
        }
    }
    finally
    {
        if ( saved != null )
            System.setProperty( "xmvn.home", saved );
    }
}