{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,23]],"date-time":"2026-09-23T05:30:38Z","timestamp":1790141438805,"version":"4.0.1"},"reference-count":66,"publisher":"Springer Science and Business Media LLC","issue":"3","license":[{"start":{"date-parts":[[2018,11,6]],"date-time":"2018-11-06T00:00:00Z","timestamp":1541462400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"DOI":"10.13039\/100010665","name":"H2020 Marie Sk lstrok;odowska-Curie Actions","doi-asserted-by":"publisher","award":["642954"],"award-info":[{"award-number":["642954"]}],"id":[{"id":"10.13039\/100010665","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Empir Software Eng"],"published-print":{"date-parts":[[2019,6]]},"DOI":"10.1007\/s10664-018-9663-0","type":"journal-article","created":{"date-parts":[[2018,11,5]],"date-time":"2018-11-05T20:27:00Z","timestamp":1541449620000},"page":"1461-1498","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":54,"title":["Mock objects for testing java systems"],"prefix":"10.1007","volume":"24","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2997-1890","authenticated-orcid":false,"given":"Davide","family":"Spadini","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Maur\u00edcio","family":"Aniche","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Magiel","family":"Bruntink","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Alberto","family":"Bacchelli","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2018,11,6]]},"reference":[{"key":"9663_CR1","doi-asserted-by":"publisher","unstructured":"Alves TL, Ypma C, Visser J (2010) Deriving metric thresholds from benchmark data. In: IEEE international conference on software maintenance ICSM. https:\/\/doi.org\/10.1109\/ICSM.2010.5609747","DOI":"10.1109\/ICSM.2010.5609747"},{"key":"9663_CR2","doi-asserted-by":"publisher","unstructured":"Aniche M, Treude C, Zaidman A, Deursen AV, Gerosa MA (2016) SATT: tailoring code metric thresholds for different software architectures. In: Proceedings - 2016 IEEE 16th international working conference on source code analysis and manipulation, SCAM 2016, pp 41\u201350. https:\/\/doi.org\/10.1109\/SCAM.2016.19","DOI":"10.1109\/SCAM.2016.19"},{"key":"9663_CR3","doi-asserted-by":"crossref","unstructured":"Arcuri A, Fraser G, Galeotti JP (2014) Automated unit test generation for classes with environment dependencies. In: Proceedings of the 29th ACM\/IEEE international conference on automated software engineering, pp 79\u201390. ACM","DOI":"10.1145\/2642937.2642986"},{"key":"9663_CR4","doi-asserted-by":"crossref","unstructured":"Arcuri A, Fraser G, Just R (2017) Private api access and functional mocking in automated unit test generation. In: 2017 IEEE international conference on software testing, verification and validation (ICST), pp 126\u2013137. IEEE","DOI":"10.1109\/ICST.2017.19"},{"key":"9663_CR5","volume-title":"Modern information retrieval, vol 463","author":"R Baeza-Yates","year":"1999","unstructured":"Baeza-Yates R, Ribeiro-Neto B et al (1999) Modern information retrieval, vol 463. ACM Press, New York"},{"issue":"4","key":"9663_CR6","doi-asserted-by":"publisher","first-page":"1052","DOI":"10.1007\/s10664-014-9313-0","volume":"20","author":"G Bavota","year":"2015","unstructured":"Bavota G, Qusef A, Oliveto R, De Lucia A, Binkley D (2015) Are test smells really harmful? An empirical study. Empir Softw Eng 20(4):1052\u20131094. https:\/\/doi.org\/10.1007\/s10664-014-9313-0 . http:\/\/link.springer.com\/10.1007\/s10664-014-9313-0","journal-title":"Empir Softw Eng"},{"key":"9663_CR7","volume-title":"Test-driven development: by example","author":"K Beck","year":"2003","unstructured":"Beck K (2003) Test-driven development: by example. Addison-Wesley Professional, Boston"},{"key":"9663_CR8","doi-asserted-by":"crossref","unstructured":"Biegel B, Soetens QD, Hornig W, Diehl S, Demeyer S (2011) Comparison of similarity metrics for refactoring detection. In: Proceedings of the 8th working conference on mining software repositories, pp 53\u201362. ACM","DOI":"10.1145\/1985441.1985452"},{"key":"9663_CR9","doi-asserted-by":"crossref","unstructured":"Bruntink M, Van Deursen A (2004) Predicting class testability using object-oriented metrics. In: 4th IEEE international workshop on source code analysis and manipulation, 2004. pp 136\u2013145. IEEE","DOI":"10.1109\/SCAM.2004.16"},{"key":"9663_CR10","doi-asserted-by":"crossref","unstructured":"D\u2019Ambros M, Lanza M, Robbes R (2010) An extensive comparison of bug prediction approaches. In: 2010 7th IEEE working conference on mining software repositories (MSR), p 31\u201341. IEEE","DOI":"10.1109\/MSR.2010.5463279"},{"key":"9663_CR11","unstructured":"EasyMock (2016) http:\/\/easymock.org . Online, Accessed 3 Feb 2016"},{"key":"9663_CR12","volume-title":"Domain-driven design: tackling complexity in the heart of software","author":"E Evans","year":"2004","unstructured":"Evans E (2004) Domain-driven design: tackling complexity in the heart of software. Addison-Wesley Professional, Boston"},{"key":"9663_CR13","volume-title":"Patterns of enterprise application architecture","author":"M Fowler","year":"2002","unstructured":"Fowler M (2002) Patterns of enterprise application architecture. Addison-wesley Longman Publishing Co. Inc, Boston"},{"key":"9663_CR14","unstructured":"Fowler M, Beck K, Hansson DH (2014) Is tdd dead? https:\/\/plus.google.com\/events\/ci2g23mk0lh9too9bgbp3rbut0k . Last access in July, 2018"},{"key":"9663_CR15","doi-asserted-by":"crossref","unstructured":"Fraser G, Arcuri A (2011) Evosuite: automatic test suite generation for object-oriented software. In: Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on foundations of software engineering, pp 416\u2013419. ACM","DOI":"10.1145\/2025113.2025179"},{"key":"9663_CR16","doi-asserted-by":"crossref","unstructured":"Freeman S, Mackinnon T, Pryce N, Walnes J (2004) Mock roles, objects. In: Companion to the 19th annual ACM SIGPLAN conference on object-oriented programming systems, languages, and applications, pp 236\u2013246. ACM","DOI":"10.1145\/1028664.1028765"},{"key":"9663_CR17","volume-title":"Growing object-oriented software, guided by tests","author":"S Freeman","year":"2009","unstructured":"Freeman S, Pryce N (2009) Growing object-oriented software, guided by tests. Pearson Education, London"},{"key":"9663_CR18","doi-asserted-by":"publisher","unstructured":"Greiler M, van Deursen A, Storey MA (2013) Automated detection of test fixture strategies and smells. In: 2013 IEEE 6th international conference on software testing, verification and validation, pp 322\u2013331. https:\/\/doi.org\/10.1109\/ICST.2013.45","DOI":"10.1109\/ICST.2013.45"},{"key":"9663_CR19","doi-asserted-by":"crossref","unstructured":"Greiler M, Zaidman A, van Deursen A, Storey MA (2013) Strategies for avoiding text fixture smells during software evolution. In: Proceedings of the 10th Working Conference on Mining Software Repositories (MSR), pp 387\u2013396. IEEE","DOI":"10.1109\/MSR.2013.6624053"},{"key":"9663_CR20","unstructured":"Hamill P (2004) Unit test frameworks: tools for high-quality software development. O\u2019Reilly Media"},{"key":"9663_CR21","volume-title":"Universal methods of design: 100 ways to research complex problems, develop innovative ideas, and design effective solutions","author":"B Hanington","year":"2012","unstructured":"Hanington B, Martin B (2012) Universal methods of design: 100 ways to research complex problems, develop innovative ideas, and design effective solutions. Rockport Publishers, Beverly"},{"key":"9663_CR22","unstructured":"Henderson F (2017) Software Engineering at Google. arXiv: 1702.01715"},{"key":"9663_CR23","doi-asserted-by":"publisher","DOI":"10.1088\/1751-8113\/44\/8\/085201","volume-title":"Robust confidence intervals for effect sizes: a comparative study of cohen\u2019s d and cliff\u2019s delta under non-normality and heterogeneous variances","author":"MR Hess","year":"2004","unstructured":"Hess MR, Kromrey JD (2004) Robust confidence intervals for effect sizes: a comparative study of cohen\u2019s d and cliff\u2019s delta under non-normality and heterogeneous variances. American Educational Research Association, San Diego. https:\/\/doi.org\/10.1088\/1751-8113\/44\/8\/085201 . http:\/\/www.coedu.usf.edu\/main\/departments\/me\/documents\/cohen.pdf arXiv: 1011.1669 http:\/\/stacks.iop.org\/1751-8121\/44\/i=8\/a=085201?key=crossref.abc74c979a75846b3de48a5587bf708f"},{"key":"9663_CR24","unstructured":"Hunt A, Thomas D (2004) Pragmatic unit testing in c# with nunit. The Pragmatic Programmers"},{"key":"9663_CR25","unstructured":"JMock (2016) http:\/\/www.jmock.org . Online, Accessed 3 Feb 2016"},{"key":"9663_CR26","unstructured":"Kaczanowski T (2012) Practical Unit Testing with testNG and Mockito. Tomasz Kaczanowski"},{"key":"9663_CR27","unstructured":"Karlesky M, Williams G, Bereza W, Fletcher M (2007) Mocking the embedded world: test-driven development, continuous integration, and design patterns. In: Embedded systems conference Silicon Valley (San Jose, California) ESC 413, april 2007. ESC 413"},{"key":"9663_CR28","unstructured":"Kim SS (2016) Mocking embedded hardware for software validation. Ph.D thesis"},{"key":"9663_CR29","unstructured":"Kotlin (2016) https:\/\/kotlinlang.org . Online; Accessed 3 Feb 2016"},{"key":"9663_CR30","unstructured":"Langr J, Hunt A, Thomas D (2015) Pragmatic unit testing in java 8 with JUnit. Pragmatic Bookshelf"},{"key":"9663_CR31","doi-asserted-by":"crossref","unstructured":"Li B, Vendome C, Linares-V\u00e1squez M, Poshyvanyk D, Kraft NA (2016) Automatically documenting unit test cases. In: 2016 IEEE international conference on software testing, verification and validation (ICST), pp 341\u2013352. IEEE","DOI":"10.1109\/ICST.2016.30"},{"key":"9663_CR32","volume-title":"Extreme Programming Examined","author":"T Mackinnon","year":"2001","unstructured":"Mackinnon T, Freeman S, Craig P (2001) Extreme Programming Examined. Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA. ISBN:0-201-71040-4"},{"key":"9663_CR33","first-page":"149","volume":"9","author":"MR Marri","year":"2009","unstructured":"Marri MR, Xie T, Tillmann N, De Halleux J, Schulte W (2009) An empirical study of testing file-system-dependent software with mock objects. AST 9:149\u2013153","journal-title":"AST"},{"issue":"4","key":"9663_CR34","doi-asserted-by":"publisher","first-page":"308","DOI":"10.1109\/TSE.1976.233837","volume":"SE-2","author":"T McCabe","year":"1976","unstructured":"McCabe T (1976) A complexity measure. IEEE Trans Softw Eng SE-2 (4):308\u2013320. https:\/\/doi.org\/10.1109\/TSE.1976.233837 . http:\/\/ieeexplore.ieee.org\/lpdocs\/epic03\/wrapper.htm?arnumber=1702388 . http:\/\/ieeexplore.ieee.org\/document\/1702388\/","journal-title":"IEEE Trans Softw Eng"},{"key":"9663_CR35","volume-title":"xUnit test patterns: Refactoring test code","author":"G Meszaros","year":"2007","unstructured":"Meszaros G (2007) xUnit test patterns: Refactoring test code. Pearson Education, London"},{"key":"9663_CR36","doi-asserted-by":"publisher","unstructured":"Mostafa S, Wang X (2014) An empirical study on the usage of mocking frameworks in software testing. In: 2014 14th international conference on quality software, pp 127\u2013132. IEEE. https:\/\/doi.org\/10.1109\/QSIC.2014.19 . http:\/\/ieeexplore.ieee.org\/document\/6958396\/","DOI":"10.1109\/QSIC.2014.19"},{"key":"9663_CR37","unstructured":"Mock (2016) https:\/\/github.com\/testing-cabal\/mock . Online, Accessed 3 Feb 2016"},{"key":"9663_CR38","unstructured":"Mocker (2016) https:\/\/labix.org\/mocker . Online, Accessed 3 Feb 2016"},{"key":"9663_CR39","unstructured":"Mockito (2016) http:\/\/site.mockito.org . Online, Accessed 3 Feb 2016"},{"key":"9663_CR40","unstructured":"MyBatis (2016) http:\/\/www.mybatis.org\/ . Online, Accessed 3 Feb 2016"},{"issue":"3","key":"9663_CR41","doi-asserted-by":"publisher","first-page":"263","DOI":"10.1002\/ejsp.2420150303","volume":"15","author":"AJ Nederhof","year":"1985","unstructured":"Nederhof AJ (1985) Methods of coping with social desirability bias: a review. Eur J Social Psychol 15(3):263\u2013280","journal-title":"Eur J Social Psychol"},{"key":"9663_CR42","unstructured":"Osherove R (2009) The art of unit testing: with examples in.NET Manning"},{"key":"9663_CR43","doi-asserted-by":"crossref","unstructured":"Palomba F, Di Nucci D, Panichella A, Oliveto R, De Lucia A (2016) On the diffusion of test smells in automatically generated test code: an empirical study. In: Proceedings of the 9th international workshop on search-based software testing, pp 5\u201314. ACM","DOI":"10.1145\/2897010.2897016"},{"key":"9663_CR44","unstructured":"Pereira F (2014) Mockists are dead. long live classicists. https:\/\/www.thoughtworks.com\/insights\/blog\/mockists-are-dead-long-live-classicists . Last access in July, 2018"},{"key":"9663_CR45","unstructured":"PowerMock (2016) https:\/\/github.com\/powermock\/powermock . Online, Accessed 3 Feb 2016"},{"issue":"1","key":"9663_CR46","doi-asserted-by":"publisher","first-page":"21","DOI":"10.1515\/bile-2015-0008","volume":"2","author":"NM Razali","year":"2011","unstructured":"Razali NM, Wah YB (2011) Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling tests. J Statist Model Anal 2(1):21\u201333. https:\/\/doi.org\/10.1515\/bile-2015-0008","journal-title":"J Statist Model Anal"},{"issue":"3","key":"9663_CR47","first-page":"94","volume":"22","author":"G Rugg","year":"2005","unstructured":"Rugg G (2005) Article picture sorts and item sorts. Computing 22(3):94","journal-title":"Computing"},{"issue":"4","key":"9663_CR48","doi-asserted-by":"publisher","first-page":"22","DOI":"10.1109\/MS.2006.91","volume":"23","author":"P Runeson","year":"2006","unstructured":"Runeson P (2006) A survey of unit testing practices. IEEE Softw 23(4):22\u201329. https:\/\/doi.org\/10.1109\/MS.2006.91 . http:\/\/ieeexplore.ieee.org\/lpdocs\/epic03\/wrapper.htm?arnumber=1657935","journal-title":"IEEE Softw"},{"key":"9663_CR49","doi-asserted-by":"crossref","unstructured":"Samimi H, Hicks R, Fogel A, Millstein T (2013) Declarative mocking categories and subject descriptors, pp 246\u2013256","DOI":"10.1145\/2483760.2483790"},{"key":"9663_CR50","doi-asserted-by":"publisher","unstructured":"Spadini D (2017) To Mock or Not To Mock? Online Appendix. https:\/\/doi.org\/10.4121\/uuid:fce8653c-344c-4dcb-97ab-c9c1407ad2f0","DOI":"10.4121\/uuid:fce8653c-344c-4dcb-97ab-c9c1407ad2f0"},{"key":"9663_CR51","unstructured":"Spadini D, Aniche M, Bacchelli A, Bruntink M (2017) MockExtractor. The tool is available at http:\/\/www.doi.org\/10.5281\/zenodo.1475900"},{"key":"9663_CR52","doi-asserted-by":"crossref","unstructured":"Spadini D, Aniche M, Bruntink M, Bacchelli A (2017) To mock or not to mock?: an empirical study on mocking practices. In: Proceedings of the 14th international conference on mining software repositories, pp 402\u2013412. IEEE Press","DOI":"10.1109\/MSR.2017.61"},{"key":"9663_CR53","unstructured":"Spencer D (2004) Card sorting: a definitive guide. http:\/\/boxesandarrows.com\/card-sorting-a-definitive-guide\/"},{"key":"9663_CR54","doi-asserted-by":"publisher","unstructured":"Taneja K, Zhang Y, Xie T (2010) MODA: automated test generation for database applications via mock objects. In: Proceedings of the IEEE\/ACM international conference on Automated software engineering - ASE \u201910, p 289. ACM Press, New York. https:\/\/doi.org\/10.1145\/1858996.1859053 . http:\/\/portal.acm.org\/citation.cfm?doid=1858996.1859053","DOI":"10.1145\/1858996.1859053"},{"key":"9663_CR55","doi-asserted-by":"crossref","unstructured":"Tufano M, Palomba F, Bavota G, Di Penta M, Oliveto R, De Lucia A, Poshyvanyk D (2016) An empirical investigation into the nature of test smells. In: Proceedings of the 31st IEEE\/ACM international conference on automated software engineering, ASE 2016, pp 4-15. ACM, New York","DOI":"10.1145\/2970276.2970340"},{"key":"9663_CR56","doi-asserted-by":"crossref","unstructured":"Vahabzadeh A, Fard AM, Mesbah A (2015) An empirical study of bugs in test code. In: 2015 IEEE international conference on software maintenance and evolution (ICSME), pp 101\u2013110. IEEE","DOI":"10.1109\/ICSM.2015.7332456"},{"key":"9663_CR57","unstructured":"van Deursen A, Moonen L, Bergh A, Kok G (2001) Refactoring test code. In: Proceedings of the 2nd international conference on extreme programming and flexible processes in software engineering (XP), pp 92\u201395"},{"issue":"12","key":"9663_CR58","doi-asserted-by":"publisher","first-page":"800","DOI":"10.1109\/TSE.2007.70745","volume":"33","author":"B Rompaey Van","year":"2007","unstructured":"Van Rompaey B, Du Bois B, Demeyer S, Rieger M (2007) On the detection of test smells: a metrics-based approach for general fixture and eager test. IEEE Trans Softw Eng 33(12):800\u2013817. https:\/\/doi.org\/10.1109\/TSE.2007.70745","journal-title":"IEEE Trans Softw Eng"},{"key":"9663_CR59","doi-asserted-by":"crossref","unstructured":"Vonken F, Zaidman A (2012) Refactoring with unit testing: a match made in heaven?. In: 2012 19th working conference on reverse engineering (WCRE), pp 29\u201338. IEEE","DOI":"10.1109\/WCRE.2012.13"},{"issue":"5","key":"9663_CR60","doi-asserted-by":"publisher","first-page":"54","DOI":"10.1109\/52.714817","volume":"15","author":"E Weyuker","year":"1998","unstructured":"Weyuker E (1998) Testing component-based software: a cautionary tale. IEEE Softw 15(5):54\u201359. https:\/\/doi.org\/10.1109\/52.714817 . http:\/\/ieeexplore.ieee.org\/document\/714817\/","journal-title":"IEEE Softw"},{"issue":"6","key":"9663_CR61","doi-asserted-by":"publisher","first-page":"269","DOI":"10.1093\/jee\/39.2.269","volume":"39","author":"F Wilcoxon","year":"1946","unstructured":"Wilcoxon F (1946) Individual comparisons of grouped data by ranking methods. J Econ Entomol 39(6):269. https:\/\/doi.org\/10.2307\/3001968","journal-title":"J Econ Entomol"},{"key":"9663_CR62","unstructured":"Wynne M, Hellesoy A (2012) The cucumber book: behaviour-driven development for testers and developers. Pragmatic Bookshelf"},{"key":"9663_CR63","unstructured":"Wynne M, Hellesoy A (2012) The cucumber book: Behaviour-driven development for testers and developers. Pragmatic Bookshelf"},{"key":"9663_CR64","doi-asserted-by":"crossref","unstructured":"Xie T, Tillmann N, De Halleux J, Schulte W (2010) Future of developer testing: Building quality in code. In: Proceedings of the FSE\/SDP workshop on Future of software engineering research, pp 415\u2013420. ACM","DOI":"10.1145\/1882362.1882447"},{"key":"9663_CR65","doi-asserted-by":"publisher","unstructured":"Zaidman A, Rompaey BV, Demeyer S, Deursen AV (2008) Mining software repositories to study co-evolution of production and test code. In: 2008 1st international conference on software testing, verification, and validation, vol 3, pp 220\u2013229. https:\/\/doi.org\/10.1109\/ICST.2008.47","DOI":"10.1109\/ICST.2008.47"},{"key":"9663_CR66","doi-asserted-by":"crossref","unstructured":"Zaidman A, Van Rompaey B, Demeyer S, Van Deursen A (2008) Mining software repositories to study co-evolution of production & test code. In: 2008 1St international conference on software testing, verification, and validation, pp 220\u2013229. IEEE","DOI":"10.1109\/ICST.2008.47"}],"container-title":["Empirical Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"http:\/\/link.springer.com\/content\/pdf\/10.1007\/s10664-018-9663-0.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"http:\/\/link.springer.com\/article\/10.1007\/s10664-018-9663-0\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"http:\/\/link.springer.com\/content\/pdf\/10.1007\/s10664-018-9663-0.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,4,3]],"date-time":"2026-04-03T23:50:49Z","timestamp":1775260249000},"score":1,"resource":{"primary":{"URL":"http:\/\/link.springer.com\/10.1007\/s10664-018-9663-0"}},"subtitle":["Why and how developers use them, and how they evolve"],"short-title":[],"issued":{"date-parts":[[2018,11,6]]},"references-count":66,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2019,6]]}},"alternative-id":["9663"],"URL":"https:\/\/doi.org\/10.1007\/s10664-018-9663-0","relation":{},"ISSN":["1382-3256","1573-7616"],"issn-type":[{"value":"1382-3256","type":"print"},{"value":"1573-7616","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018,11,6]]},"assertion":[{"value":"6 November 2018","order":1,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}}]}}