### Question:
QNetwork extends BaseNetwork<QNetwork> { @Override public QNetwork clone() { return new QNetwork(getNetworkHandler().clone()); } QNetwork(ComputationGraph model);  QNetwork(MultiLayerNetwork model); private  QNetwork(INetworkHandler handler); @Override QNetwork clone();  }### Answer:
@Test public void when_callingClone_expect_clonedQNetwork() { ComputationGraph modelMock = mock(ComputationGraph.class); when(modelMock.clone()).thenReturn(modelMock); QNetwork sut = new QNetwork(modelMock); QNetwork clone = sut.clone(); assertNotSame(sut, clone); assertNotSame(sut.getNetworkHandler(), clone.getNetworkHandler()); }