### Question:
DailyMarkReward { public static final boolean[] toMarkArray(String markArrayStr ) { if ( StringUtil.checkNotEmpty(markArrayStr) ) { String[] fields = markArrayStr.split(","); boolean[] boolArray = new boolean[fields.length]; for ( int i=0; i<fields.length; i++ ) { String field = fields[i]; if ( Constant.ZERO.equals(field) ) { boolArray[i] = false; } else { boolArray[i] = true; } } return boolArray; } else { return new boolean[0]; } }  String getCurrentMonth(); void setCurrentMonth(String currentMonth); String getToday(); void setToday(String today); int getTotalCount(); void setTotalCount(int totalCount); List<Boolean> getMarkArray(); void addMarkArray(boolean[] markArray); int getDayOfMonth(); void setDayOfMonth(int dayOfMonth); static final boolean[] toMarkArray(String markArrayStr ); DailyMarkPojo getDailyMark(); void setDailyMark(DailyMarkPojo dailyMark); boolean isTodayMarked(); void setTodayMarked(boolean isTodayMarked);  }### Answer:
@Test public void testToMarkArray() { String markArrayStr = "1,0,1,0,0,0,0"; boolean[] actual = DailyMarkReward.toMarkArray(markArrayStr); boolean[] expect = {true,false,true,false,false,false,false}; assertArrayEquals(expect, actual); }
@Test public void testToMarkArrayOne() { String markArrayStr = "1"; boolean[] actual = DailyMarkReward.toMarkArray(markArrayStr); boolean[] expect = {true}; assertArrayEquals(expect, actual); }
@Test public void testToMarkArrayEmpty() { String markArrayStr = ""; boolean[] actual = DailyMarkReward.toMarkArray(markArrayStr); boolean[] expect = {}; assertArrayEquals(expect, actual); }
@Test public void testToMarkArrayNull() { String markArrayStr = null; boolean[] actual = DailyMarkReward.toMarkArray(markArrayStr); boolean[] expect = {}; assertArrayEquals(expect, actual); }