To solve it from a compilation/build perspective, Spring webflow has a base AbstractXmlFlowExecutionTests test class that you can extend in order to write flow integration tests. Any test methods you write will blow up with a FlowModelBuilderException ("Could not parse the XML...") exception if the xml fails to parse, either due to xsd validation errors or other xml wellformedness failures. It is pretty good practice to use this utility for unit-testing your flow, and making it part of your build.
For any evaluations in your flow that are using your custom spring beans, you'll likely need to override registerMockFlowBeans or configureFlowBuilderContext, and provide mocks/test-implementations of your beans. The javadoc has a simple example.