@Test
public void testMap() throws Exception {

	// Given
	BitmapDescriptor bitmapDescriptor = mock(BitmapDescriptor.class);
	BitmapDescriptorAdapter descriptorAdapter = new BitmapDescriptorAdapter(bitmapDescriptor);
	MarkerOptionsMapper mapper = new MarkerOptionsMapper();
	MarkerOptions input = new MarkerOptions()
			.alpha(0.5f)
			.anchor(0.5f, 0.5f)
			.icon(descriptorAdapter)
			.position(new LatLng(10, 10))
			.visible(true);
	// When
	com.google.android.gms.maps.model.MarkerOptions output = mapper.map(input);
	// Then
	assertEquals(
			input.getAlpha(),
			output.getAlpha(),
			0
	);
	assertEquals(
			input.getAnchorU(),
			output.getAnchorU(),
			0
	);
	assertEquals(
			input.getAnchorV(),
			output.getAnchorV(),
			0
	);
	assertEquals(
			bitmapDescriptor,
			output.getIcon()
	);
	TestUtil.assertEquals(
			input.getPosition(),
			output.getPosition()
	);
	assertEquals(
			input.isVisible(),
			output.isVisible()
	);
}