public void assertDup(String source) throws Exception
    {
        File f = ProtoParserTest.getFile(source);
        assertTrue(f.exists());

        Proto proto = new Proto(f);

        try
        {
            ProtoUtil.loadFrom(f, proto);
        }
        catch (IllegalStateException e)
        {
            // expected

            return;
        }

        assertTrue(false);
    }
Fail-fast exceptions thrown when detecting duplicate proto components.

@author David Yu
@created Jul 21, 2011
protostuff-parser/src/test/java/io/protostuff/parser/DuplicateEntriesTest.java