Morphix { public MorphixConnector getConnector() { return connector; } Morphix(MorphixConnector connector); MorphixConnector getConnector();  }
@Test void getConnector() { assertThrows(IllegalArgumentException.class, () -> new Morphix(null)); TestConnector connector = new TestConnector(); Morphix morphix = new Morphix(connector); assertEquals(connector, morphix.getConnector()); }