Format format = new DecimalFormat( "00" );
String year = Integer.valueOf( calendar.get( Calendar.YEAR ) ).toString();
String month = format.format( calendar.get( Calendar.MONTH ) + 1 );
String day = format.format( calendar.get( Calendar.DAY_OF_MONTH ) );
ArticlesRequest request = new ArticlesRequest( -1, -1 );
request.setYear( year );
request.setMonth( month );
request.setDay( day );
List<Article> articles = articleService.getArticles( request );
Assert.assertEquals( year, articles.get( 0 ).getYear() );
Assert.assertEquals( month, articles.get( 0 ).getMonth() );
Assert.assertEquals( day, articles.get( 0 ).getDay() );