archivaConfiguration.getConfiguration();
archivaConfigurationControl.setReturnValue( new Configuration() );
archivaConfigurationControl.replay();
action.prepare();
ManagedRepositoryConfiguration configuration = action.getRepository();
assertNotNull( configuration );
assertNull( configuration.getId() );
// check all booleans are false
assertFalse( configuration.isDeleteReleasedSnapshots() );
assertFalse( configuration.isScanned() );
assertFalse( configuration.isReleases() );
assertFalse( configuration.isSnapshots() );
String status = action.input();
assertEquals( Action.INPUT, status );
// check defaults
assertFalse( configuration.isDeleteReleasedSnapshots() );
assertTrue( configuration.isScanned() );
assertTrue( configuration.isReleases() );
assertFalse( configuration.isSnapshots() );
}