Material characterization and the calibration of constitutive models play an important role in the majority of the forming processes nowadays. For an accurate virtualization of the processes, the material mechanical behavior needs to be known a priori. The classical characterization procedure involves carrying out several standard mechanical tests to identify the required information about the material. However, this procedure turns out to be expensive and time-consuming. Heterogeneous mechanical tests have been used to overcome this issue. By providing richer information with a reduced number of tests, their use can enhance the actual material characterization process. This work aims at making a significant contribution towards this goal by designing a heterogeneous mechanical test using topology optimization. A specimen topology is obtained with a heterogeneous displacement field by applying the theory of compliant mechanisms. Due to the large displacements considered, a geometrically nonlinear finite element analysis and a topology optimization procedure are proposed. Material nonlinearity is taken into account as well, to design solutions closer to reality. An optimal mechanical test with a highly heterogeneous strain field is obtained and evaluated, considering its diversity, using mechanism theory and a mechanical indicator.