'Helper function to create template EBS volume to work on.
:param NamedConstant operation: Intended use of created template.
A value from ``VolumeOperations``.
:returns: Suitable volume in the right start state for input operation.
:rtype: ``VolumeStub``'

def _create_template_ebs_volume(self, operation):

    volume = VolumeStub()
    volume.id = u'vol-9c48a689'
    volume.create_time = u'2015-07-14T22:46:00.447Z'
    volume.size = 1
    volume.snapshot_id = ''
    volume.zone = u'us-west-2b'
    volume.type = u'standard'
    volume_state_table = VolumeStateTable()
    state_flow = volume_state_table.table[operation]
    start_state = state_flow.start_state.value
    volume.state = start_state
    return volume
