private Profile createMockProfile( int majorVersion, int minorVersion )
{
MockControl profileControl = MockControl.createControl( Profile.class );
Profile profile = (Profile) profileControl.getMock();
profile.version();
profileControl.setReturnValue( new Version( (byte) majorVersion, (byte) minorVersion ) );
profile.get_object_key();
profileControl.setReturnValue( new byte[] {} );
profileControl.replay();
return profile;