### Question:
SupportBasedFactory implements Factory { @Override public AnalyzeStrategy create(LhsResult lhsResult) { if (isSupported(lhsResult)) { return supportedFactory.create(lhsResult); } return notSupportedFactory.create(lhsResult); }  @Override AnalyzeStrategy create(LhsResult lhsResult);  }### Answer:
@Test public void testNotSupported() { Factory factory = createFactory(); assertThat(factory.create(new LhsResult(Mockito.mock(MDSite.class), 9))) .isInstanceOf(NotSupportedStrategy.class); }
@Test public void testSupported() { Factory factory = createFactory(); assertThat(factory.create(new LhsResult(Mockito.mock(MDSite.class), 10))) .isInstanceOf(SupportedStrategy.class); }