### Question:
XrayGoggles { public XrayWindow getTransformer() { return myTransformer; } XrayGoggles(Toolbox toolbox); void close(); XrayWindow getTransformer();  }### Answer:
@Test public void test() { EasyMockSupport support = new EasyMockSupport(); UIRegistry uiRegistry = createUIRegistry(support); Toolbox toolbox = createToolbox(support, uiRegistry); support.replayAll(); XrayGoggles goggles = new XrayGoggles(toolbox); assertNotNull(goggles.getTransformer()); EventQueueUtilities.runOnEDTAndWait(() -> { }); support.verifyAll(); }