final TargetSession session = mock(TargetSession.class);
when(connection.getSettings()).thenReturn(connectionSettingsNegotiator.getSettings());
// setting up the phases
TargetFullFeaturePhase phase = new TargetFullFeaturePhase(connection);
Object[][] returnVal = { { TargetStage.class, new TargetStage[] { new TestUnitReadyStage(phase), new SendDiagnosticStage(phase), new ReportLunsStage(phase), new InquiryStage(phase), new RequestSenseStage(phase), new TextNegotiationStage(phase), new UnsupportedOpCodeStage(phase), new FormatUnitStage(phase) }, ProtocolDataUnit.class, new ProtocolDataUnit[] {
// TextUnitReadyStage
new ProtocolDataUnitFactory().create(false, true, OperationCode.SCSI_COMMAND, "None", "None"),
// SendDiagnosticStage
new ProtocolDataUnitFactory().create(false, true, OperationCode.SCSI_COMMAND, "None", "None"),