DawgClientFactory implements IDawgClientFactory { @Override public IrClient getIrClient() { return new IrClient(stb); } DawgClientFactory(MetaStb metaStb);  DawgClientFactory(MetaStb metaStb, String dawgHouseHost, String dawgPoundHost); @Override IDawgHouseClient<?> getHouseClient(); @Override IDawgPoundClient getPoundClient(); @Override IrClient getIrClient(); @Override PowerClient getPowerClient(); @Override SerialClient getSerialClient(); String getDawgHouseHost(); void setDawgHouseHost(String dawgHouseHost); String getDawgPoundHost(); void setDawgPoundHost(String dawgPoundHost);  }
@Test public void testGetIrClient() { DawgClientFactory factory = new DawgClientFactory(new MetaStb(),"",""); Assert.assertNotNull(factory.getIrClient()); IrClient expected = factory.getIrClient(); Assert.assertNotEquals(factory.getIrClient(), expected); }
@Test(expectedExceptions=IllegalArgumentException.class) public void testGetIrClientWithNullParam() { DawgClientFactory factory = new DawgClientFactory(null); factory.getIrClient(); }