@Test
public void parsingTheResultsOfExecutingPropGetForSVNExternals() throws Exception {

    String testPropgetResult = ". - shared/build\tsvn://mybank.org/svnbank/trunk/java/shared/build\n"
            + "shared/tool/jfcunit_2.08\tsvn://mybank.org/svnbank/trunk/java/shared/tool/jfcunit_2.08\n"
            + "shared/lib/jnlp-1_2-dev\tsvn://mybank.org/svnbank/trunk/java/shared/lib/jnlp-1_2-dev\n";
    final HashMap<String, List<String[]>> directories = new HashMap<String, List<String[]>>();
    final BufferedReader reader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(
            testPropgetResult.getBytes("UTF-8")), "UTF-8"));
    try {
        SVN.parsePropgetReader(reader, directories);
    } finally {
        reader.close();
    }
    assertEquals(1, directories.keySet().size());
    String directory = directories.keySet().iterator().next();
    List externals = directories.get(directory);
    assertEquals("Wrong number of externals", 3, externals.size());
    String[] firstEntry = (String[]) externals.get(0);
    assertEquals("Wrong external: " + Arrays.asList(firstEntry).toString(), 2, firstEntry.length);
    assertEquals("Wrong externalSvnURL", "svn://mybank.org/svnbank/trunk/java/shared/build", firstEntry[1]);
}