SuccessfulState implements DoSState { @Override public void updateTestProbes( Metric metric ) { synchronized ( list ) { list.add( metric ); } }  @Override String getName(); @Override void update( final IntelligentDoSLibraryImpl STATE_CONTEXT, final AttackModel attackModel ); @Override void updateTestProbes( Metric metric );  }
@Test public void testTestProbes() { successfulState.updateTestProbes( new Metric() ); }