@@ -0,0 +1,728 @@
+package com.sunRays.service;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0Aimport org.powermock.reflect.Whitebox;%0A%0Aimport com.sunRays.dao.MenuItemDao;%0Aimport com.sunRays.model.MenuItem;%0A%0Apublic class MenuItemServiceImplTest %7B%0A@Test%0Apublic void testGetInteger()%7B%0A%09Integer menuId=2;%0A%09MenuItem expectedMenuItem = new MenuItem();%0A%09expectedMenuItem.setMenuId(menuId);%0A%09%0A%09MenuItemServiceImpl misi=new MenuItemServiceImpl();%0A%09%0A%09MenuItemDao mid=Mockito.mock(MenuItemDao.class);%0A%09Whitebox.setInternalState(misi, MenuItemDao.class, mid);%0A%09Mockito.when(mid.get(menuId)).thenReturn(expectedMenuItem);%0A%0A%09MenuItem actualMenuItem = misi.get(menuId);%0A%09%0A%09Assert.assertEquals(expectedMenuItem, actualMenuItem);%0A%7D%0A%7D%0A

test added