@Test
public void testGetCategoryIdReturnsRequestValue() {

	long categoryId = RandomTestUtil.randomInt();
	HttpServletRequest httpServletRequest = Mockito.mock(
		HttpServletRequest.class);
	Mockito.when(
		httpServletRequest.getParameter("mbCategoryId")
	).thenReturn(
		String.valueOf(categoryId)
	);
	Assert.assertEquals(
		categoryId,
		MBUtil.getCategoryId(httpServletRequest, (MBCategory)null));
}