I need to used different mocks for the same component in different tests. Using @Install(precedence = Install.MOCK) doesn't work for me (even if I use different precedences) because Seam will always use the same mock for all tests (the one with the higher precedence).
I also have integration and unit tests in the same project and it's impossible for the integration tests to use the real component since the mock is in the classpath and used in every test.
Is there a way to solve this issue?
Basically, I'm looking for a programmatic way of indicating Seam which mocks to install...