[android-components](../index.md) / [mozilla.components.support.test](index.md) / [createInstance](./create-instance.md)

# createInstance

`fun <T : `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> createInstance(kClass: `[`KClass`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)`<`[`T`](create-instance.md#T)`>): `[`T`](create-instance.md#T) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/test/src/main/java/mozilla/components/support/test/ArgumentCaptor.kt#L39)